Skip to content

Commit

Permalink
added require_change_password to admin
Browse files Browse the repository at this point in the history
Signed-off-by: Trey <[email protected]>
  • Loading branch information
TreyWW committed Sep 16, 2024
1 parent 66ea876 commit 260c89e
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion backend/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,17 @@ class InvoiceURLAdmin(admin.ModelAdmin):
fields = list(UserAdmin.fieldsets) # type: ignore[arg-type]
fields[0] = (
None,
{"fields": ("username", "password", "logged_in_as_team", "awaiting_email_verification", "stripe_customer_id", "entitlements")},
{
"fields": (
"username",
"password",
"logged_in_as_team",
"awaiting_email_verification",
"stripe_customer_id",
"entitlements",
"require_change_password",
)
},
)
UserAdmin.fieldsets = tuple(fields)
admin.site.register(User, UserAdmin)
Expand Down

0 comments on commit 260c89e

Please sign in to comment.