mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-04 20:40:14 +03:00
Removed email from search fields
This commit is contained in:
parent
226d96ba36
commit
ef14ef9372
|
@ -4,7 +4,7 @@ from rest_framework.authtoken.models import Token
|
|||
|
||||
|
||||
class TokenAdmin(admin.ModelAdmin):
|
||||
search_fields = ("key", "user__username", "user__email")
|
||||
search_fields = ("key", "user__username")
|
||||
list_display = ('key', 'user', 'created')
|
||||
fields = ('user',)
|
||||
ordering = ('-created',)
|
||||
|
|
Loading…
Reference in New Issue
Block a user