Skip to content

Commit c63bd59

Browse files
committed
add to_alias_type to admin
1 parent 2bb9ee7 commit c63bd59

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drfpasswordless/admin.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class CallbackInline(AbstractCallbackTokenInline):
2828

2929

3030
class AbstractCallbackTokenAdmin(UserLinkMixin, admin.ModelAdmin):
31-
readonly_fields = ('created_at', 'user', 'key', 'type',)
32-
list_display = ('created_at', UserLinkMixin.LINK_TO_USER_FIELD, 'key', 'type', 'is_active')
33-
fields = ('created_at', 'user', 'key', 'type', 'is_active')
31+
readonly_fields = ('created_at', 'user', 'key', 'type', 'to_alias_type')
32+
list_display = ('created_at', UserLinkMixin.LINK_TO_USER_FIELD, 'key', 'type', 'is_active', 'to_alias_type')
33+
fields = ('created_at', 'user', 'key', 'type', 'is_active', 'to_alias_type')
3434
extra = 0

0 commit comments

Comments
 (0)