Skip to content

Commit 93762fe

Browse files
authored
Allow sorting and filtering by Profile.date_joined in Django admin (#606)
1 parent 2559c92 commit 93762fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

RIGS/admin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,9 @@ class Meta:
154154

155155
@admin.register(models.Profile)
156156
class ProfileAdmin(UserAdmin, AssociateAdmin):
157-
list_display = ('username', 'name', 'is_approved', 'is_superuser', 'is_supervisor', 'number_of_events', 'last_login')
157+
list_display = ('username', 'name', 'is_approved', 'is_superuser', 'is_supervisor', 'number_of_events', 'last_login', 'date_joined')
158158
list_display_links = ['username']
159-
list_filter = UserAdmin.list_filter + ('is_approved',)
159+
list_filter = UserAdmin.list_filter + ('is_approved', 'date_joined')
160160
fieldsets = (
161161
(None, {'fields': ('username', 'password')}),
162162
(_('Personal info'), {

0 commit comments

Comments
 (0)