Users app forms¶
User application forms.
- class UserRegistrationForm(*args: object, **kwargs: object)¶
Bases:
UserCreationForm
User registration form.
- __init__(*args: object, **kwargs: object) None ¶
Add “data-testid” attr value to html tags of form.
- add_attr_for_field(field_name: str, data: dict[str, str]) None ¶
Add attr with value to html tags of form.
- class UserUpdateForm(*args: object, **kwargs: object)¶
Bases:
UserRegistrationForm
User update form.
- clean_username() str ¶
Allow updating existing user data.
Override disables user uniqueness check.