Skip to content

Commit

Permalink
add to_alias_type to admin
Browse files Browse the repository at this point in the history
  • Loading branch information
budlight committed Apr 6, 2020
1 parent 2bb9ee7 commit c63bd59
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drfpasswordless/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class CallbackInline(AbstractCallbackTokenInline):


class AbstractCallbackTokenAdmin(UserLinkMixin, admin.ModelAdmin):
readonly_fields = ('created_at', 'user', 'key', 'type',)
list_display = ('created_at', UserLinkMixin.LINK_TO_USER_FIELD, 'key', 'type', 'is_active')
fields = ('created_at', 'user', 'key', 'type', 'is_active')
readonly_fields = ('created_at', 'user', 'key', 'type', 'to_alias_type')
list_display = ('created_at', UserLinkMixin.LINK_TO_USER_FIELD, 'key', 'type', 'is_active', 'to_alias_type')
fields = ('created_at', 'user', 'key', 'type', 'is_active', 'to_alias_type')
extra = 0

0 comments on commit c63bd59

Please sign in to comment.