mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-01-03 09:25:42 +10:00
The bug was caused by importing Django's default UserAdmin instead of CustomUserAdmin in admin.py. This bypassed all custom admin logic. Additionally, CustomUserAdmin was modifying fieldsets without explicitly preserving add_fieldsets, which can cause Django to not properly handle the user creation form, leading to password hashing issues. Changes: - Updated admin.py to import and register CustomUserAdmin - Explicitly set add_fieldsets in CustomUserAdmin to preserve Django's default user creation behavior and ensure passwords are properly hashed - Added explanatory comments Fixes #1707 Co-authored-by: Nick Sweeting <pirate@users.noreply.github.com>