1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2024-12-24 17:42:23 +00:00

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

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)