Switch RBUserCreationForm to inherit from AdminUserCreationForm.

Review Request #14832 — Created Feb. 19, 2026 and submitted

Information

Review Board
master

Reviewers

Django 5.1 introduced a new base class for user creation forms in the
admin site. It's necessary to change our form to inherit from this one,
otherwise we end up getting an error about a missing usable_password
field.

  • Ran unit tests.
  • Loaded the add-user form in the admin.
Summary ID
Switch RBUserCreationForm to inherit from AdminUserCreationForm.
Django 5.1 introduced a new base class for user creation forms in the admin site. It's necessary to change our form to inherit from this one, otherwise we end up getting an error about a missing `usable_password` field. Testing Done: - Ran unit tests. - Loaded the add-user form in the admin.
npmsrvlvxurpzzyyouxlonmpqnlrpmkv
Description From Last Updated

Can we add a Version Changed that mentions the change in parent class.

maubinmaubin
maubin
  1. 
      
  2. reviewboard/accounts/admin.py (Diff revision 1)
     
     
    Show all issues

    Can we add a Version Changed that mentions the change in parent class.

  3. 
      
david
Review request changed
Status:
Completed
Change Summary:
Pushed to master (0b7b75b)