Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
UCC
uccportal
Commits
1c95e4a2
Commit
1c95e4a2
authored
Mar 04, 2019
by
frekk
Browse files
add more filters to membership and member admin list pages
parent
dab37d8a
Changes
1
Show whitespace changes
Inline
Side-by-side
src/memberdb/admin.py
View file @
1c95e4a2
...
@@ -110,9 +110,9 @@ class MembershipAdmin(admin.ModelAdmin):
...
@@ -110,9 +110,9 @@ class MembershipAdmin(admin.ModelAdmin):
"""
"""
Define the admin page for viewing normal Member records (all details included) and approving them
Define the admin page for viewing normal Member records (all details included) and approving them
"""
"""
list_display
=
[
'membership_info'
,
'membership_type'
,
'payment_method'
,
'approved'
,
'date_submitted'
,
'member_actions'
,
]
list_display
=
[
'membership_info'
,
'membership_type'
,
'payment_method'
,
'approved'
,
'date_submitted'
,
'member_actions'
]
list_display_links
=
None
list_display_links
=
None
list_filter
=
[
'approved'
]
list_filter
=
[
'approved'
,
'payment_method'
,
'membership_type'
,
'member__is_student'
,
'member__is_guild'
]
readonly_fields
=
[
'date_submitted'
]
readonly_fields
=
[
'date_submitted'
]
radio_fields
=
{
'payment_method'
:
admin
.
VERTICAL
,
'membership_type'
:
admin
.
VERTICAL
}
radio_fields
=
{
'payment_method'
:
admin
.
VERTICAL
,
'membership_type'
:
admin
.
VERTICAL
}
actions
=
[
refresh_dispense_payment
]
actions
=
[
refresh_dispense_payment
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment