Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
thalia
concrexit
Commits
7d573204
Commit
7d573204
authored
Nov 12, 2018
by
Sébastiaan Versteeg
Committed by
Luko van der Maas
Nov 14, 2018
Browse files
Add starting year field to admin as well
parent
c5aeb8da
Changes
1
Hide whitespace changes
Inline
Side-by-side
website/members/admin.py
View file @
7d573204
...
...
@@ -95,12 +95,11 @@ class UserAdmin(BaseUserAdmin):
actions
=
[
'address_csv_export'
,
'student_number_csv_export'
]
inlines
=
(
ProfileInline
,
MembershipInline
,)
# FIXME include proper filter for expiration
# https://docs.djangoproject.com/en/1.9/ref/contrib/admin/#django.contrib.admin.ModelAdmin.list_filter
list_filter
=
(
MembershipTypeListFilter
,
'is_superuser'
,
AgeListFilter
,
'profile__event_permissions'
,)
'profile__event_permissions'
,
'profile__starting_year'
)
add_fieldsets
=
(
(
None
,
{
...
...
Write
Preview
Supports
Markdown
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