mirror of
https://github.com/etnguyen03/tjdests.git
synced 2025-04-20 17:50:16 -04:00
fix(authentication): don't search by preferred name
This commit is contained in:
parent
e7df0c7f95
commit
6a743c1144
|
@ -4,7 +4,7 @@ from .models import User
|
||||||
|
|
||||||
|
|
||||||
class UserAdmin(admin.ModelAdmin):
|
class UserAdmin(admin.ModelAdmin):
|
||||||
search_fields = ["username", "preferred_name", "last_name"]
|
search_fields = ["username", "first_name", "nickname", "last_name"]
|
||||||
list_display = ["username", "last_name", "preferred_name", "last_modified"]
|
list_display = ["username", "last_name", "preferred_name", "last_modified"]
|
||||||
list_filter = ["is_senior", "is_student", "accepted_terms", "publish_data"]
|
list_filter = ["is_senior", "is_student", "accepted_terms", "publish_data"]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user