diff options
author | Andrew Godwin | 2022-11-17 19:16:34 -0700 |
---|---|---|
committer | Andrew Godwin | 2022-11-17 19:16:34 -0700 |
commit | 6adfdbabe0d44c17f32abc9d48a6e252e2a0792e (patch) | |
tree | 6644c5eeab7970a9f9b8d9540b7ebe28cc499331 /users/admin.py | |
parent | 2a3690d1c148da5dd799052403ba7290e1fb7de0 (diff) | |
download | takahe-6adfdbabe0d44c17f32abc9d48a6e252e2a0792e.tar.gz takahe-6adfdbabe0d44c17f32abc9d48a6e252e2a0792e.tar.bz2 takahe-6adfdbabe0d44c17f32abc9d48a6e252e2a0792e.zip |
Add signup and password reset
Diffstat (limited to 'users/admin.py')
-rw-r--r-- | users/admin.py | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/users/admin.py b/users/admin.py index 7c3750d..de07e5c 100644 --- a/users/admin.py +++ b/users/admin.py @@ -1,6 +1,14 @@ from django.contrib import admin -from users.models import Domain, Follow, Identity, InboxMessage, User, UserEvent +from users.models import ( + Domain, + Follow, + Identity, + InboxMessage, + PasswordReset, + User, + UserEvent, +) @admin.register(Domain) @@ -42,6 +50,12 @@ class FollowAdmin(admin.ModelAdmin): raw_id_fields = ["source", "target"] +@admin.register(PasswordReset) +class PasswordResetAdmin(admin.ModelAdmin): + list_display = ["id", "user", "created"] + raw_id_fields = ["user"] + + @admin.register(InboxMessage) class InboxMessageAdmin(admin.ModelAdmin): list_display = ["id", "state", "state_attempted", "message_type", "message_actor"] |