Search user by last name or first name
This commit is contained in:
parent
7d007b11df
commit
150f555d9d
|
@ -9,6 +9,7 @@ class TFJMUserAdmin(admin.ModelAdmin):
|
||||||
Django admin page for users.
|
Django admin page for users.
|
||||||
"""
|
"""
|
||||||
list_display = ('email', 'first_name', 'last_name', 'role', )
|
list_display = ('email', 'first_name', 'last_name', 'role', )
|
||||||
|
search_fields = ('last_name', 'first_name',)
|
||||||
|
|
||||||
|
|
||||||
@admin.register(Document)
|
@admin.register(Document)
|
||||||
|
|
Loading…
Reference in New Issue