From 6adfdbabe0d44c17f32abc9d48a6e252e2a0792e Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Thu, 17 Nov 2022 19:16:34 -0700 Subject: Add signup and password reset --- users/admin.py | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'users/admin.py') 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"] -- cgit v1.2.3