Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hypha
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ots
hypha
Commits
a9710c3d
Commit
a9710c3d
authored
7 years ago
by
Todd Dembrey
Browse files
Options
Downloads
Patches
Plain Diff
Update the admin to group the apply actions together
parent
031b438d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
opentech/apply/admin.py
+16
-2
16 additions, 2 deletions
opentech/apply/admin.py
opentech/apply/wagtail_hooks.py
+2
-3
2 additions, 3 deletions
opentech/apply/wagtail_hooks.py
with
18 additions
and
5 deletions
opentech/apply/admin.py
+
16
−
2
View file @
a9710c3d
from
wagtail.contrib.modeladmin.options
import
ModelAdmin
from
wagtail.contrib.modeladmin.options
import
ModelAdmin
,
ModelAdminGroup
from
.models
import
ApplicationForm
,
Category
from
.models
import
ApplicationForm
,
Category
,
FundType
class
FundAdmin
(
ModelAdmin
):
model
=
FundType
menu_icon
=
'
doc-empty
'
class
CategoryAdmin
(
ModelAdmin
):
menu_label
=
'
Category Questions
'
menu_icon
=
'
list-ul
'
model
=
Category
class
ApplicationFormAdmin
(
ModelAdmin
):
model
=
ApplicationForm
menu_icon
=
'
form
'
class
ApplyAdminGroup
(
ModelAdminGroup
):
menu_label
=
'
Apply
'
menu_icon
=
'
folder-open-inverse
'
items
=
(
FundAdmin
,
ApplicationFormAdmin
,
CategoryAdmin
)
This diff is collapsed.
Click to expand it.
opentech/apply/wagtail_hooks.py
+
2
−
3
View file @
a9710c3d
from
wagtail.contrib.modeladmin.options
import
modeladmin_register
from
.admin
import
Appl
icationFormAdmin
,
Categor
yAdmin
from
.admin
import
ApplyAdmin
Group
modeladmin_register
(
ApplicationFormAdmin
)
modeladmin_register
(
CategoryAdmin
)
modeladmin_register
(
ApplyAdminGroup
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment