Search user by last name or first name

This commit is contained in:
Yohann D'ANELLO 2020-05-11 18:22:36 +02:00
parent 7d007b11df
commit 150f555d9d
1 changed files with 1 additions and 0 deletions

View File

@ -9,6 +9,7 @@ class TFJMUserAdmin(admin.ModelAdmin):
Django admin page for users.
"""
list_display = ('email', 'first_name', 'last_name', 'role', )
search_fields = ('last_name', 'first_name',)
@admin.register(Document)