We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 365d409 commit fb633f4Copy full SHA for fb633f4
rest_framework/authtoken/admin.py
@@ -23,10 +23,11 @@ def url_for_result(self, result):
23
24
class TokenAdmin(admin.ModelAdmin):
25
list_display = ('key', 'user', 'created')
26
+ list_filter = ('created',)
27
fields = ('user',)
- search_fields = ('user__username',)
28
+ search_fields = ('user__%s' % User.USERNAME_FIELD,)
29
search_help_text = _('Username')
- ordering = ('-created',)
30
+ ordering = ('user__%s' % User.USERNAME_FIELD,)
31
actions = None # Actions not compatible with mapped IDs.
32
33
def get_changelist(self, request, **kwargs):
0 commit comments