Skip to content
Snippets Groups Projects
Commit 4034b8e0 authored by Jean-Baptiste Pasquier's avatar Jean-Baptiste Pasquier
Browse files

Merge branch 'user-admin-list-display' into 'master'

update: changed list_display of DjangoLDPUserAdmin

Closes djangoldp-account#54

See merge request !141
parents 863a8048 11e12bff
No related branches found
No related tags found
1 merge request!141update: changed list_display of DjangoLDPUserAdmin
Pipeline #6390 canceled
...@@ -12,6 +12,9 @@ class DjangoLDPAdmin(GuardedModelAdmin): ...@@ -12,6 +12,9 @@ class DjangoLDPAdmin(GuardedModelAdmin):
class DjangoLDPUserAdmin(UserAdmin, GuardedModelAdmin): class DjangoLDPUserAdmin(UserAdmin, GuardedModelAdmin):
'''An extension of UserAdmin providing the functionality of DjangoLDPAdmin''' '''An extension of UserAdmin providing the functionality of DjangoLDPAdmin'''
list_display = ('urlid', 'email', 'first_name', 'last_name', 'is_staff')
def get_fieldsets(self, request, obj=None): def get_fieldsets(self, request, obj=None):
fieldsets = super().get_fieldsets(request, obj) fieldsets = super().get_fieldsets(request, obj)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment