Skip to content

Commit

Permalink
GITC-57: Introduces admindocs to create admin pages from our models (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
gdixon authored Jun 23, 2021
1 parent 9b59ff2 commit ebff0ee
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 4 deletions.
1 change: 1 addition & 0 deletions app/app/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
'django.contrib.admin',
'taskapp.celery.CeleryConfig',
'django_celery_beat',
'django.contrib.admindocs',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
Expand Down
5 changes: 4 additions & 1 deletion app/app/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@
dashboard.views.funder_dashboard_bounty_info,
name='funder_dashboard_bounty_info'
),


# quests
re_path(r'^quests/?$', quests.views.index, name='quests_index'),
Expand Down Expand Up @@ -771,6 +771,9 @@
),
re_path(r'^_administration/email/match_distribution$', retail.emails.match_distribution, name='match_distribution'),

# docs
re_path(r'^_administration/docs/',include('django.contrib.admindocs.urls')),

# settings
re_path(r'^settings/email/(.*)', marketing.views.email_settings, name='email_settings'),
re_path(r'^settings/privacy/?', marketing.views.privacy_settings, name='privacy_settings'),
Expand Down
7 changes: 4 additions & 3 deletions app/dashboard/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2841,10 +2841,11 @@ def __str__(self):


class Profile(SuperModel):
"""Define the structure of the user profile.
"""
Define the structure of the user profile.
TODO:
* Remove all duplicate identity related information already stored on User.
TODO:
* Remove all duplicate identity related information already stored on User.
"""

Expand Down
3 changes: 3 additions & 0 deletions app/retail/templates/admin/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ <h2>{% trans 'Administrative Tasks' %}</h2>
<ul>
<a href="/_administrationfaucet/faucetrequest/?fulfilled=f&rejected=f">Process Faucet Requests</a>
</ul>
<ul>
<a href="/_administration/docs">View the admin docs</a>
</ul>
</div>


Expand Down
1 change: 1 addition & 0 deletions requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -115,3 +115,4 @@ rjsmin==1.1.0
rcssmin==1.0.6
libsass==0.20.1
graphqlclient==0.2.4
docutils==0.17.1

0 comments on commit ebff0ee

Please sign in to comment.