physics_workload.users.forms

Classes

CustomUserCreationForm

A form that creates a user, with no privileges, from the given username and

CustomUserChangeForm

The main implementation of all the Form logic. Note that this class is

Module Contents

class physics_workload.users.forms.CustomUserCreationForm(*args, **kwargs)

Bases: django.contrib.auth.forms.UserCreationForm

A form that creates a user, with no privileges, from the given username and password.

This is the documented base class for customizing the user creation form. It should be kept mostly unchanged to ensure consistency and compatibility.

class Meta
model
fields = ('username', 'email')
class physics_workload.users.forms.CustomUserChangeForm(*args, **kwargs)

Bases: django.contrib.auth.forms.UserChangeForm

The main implementation of all the Form logic. Note that this class is different than Form. See the comments by the Form class for more info. Any improvements to the form API should be made to this class, not to the Form class.

class Meta
model
fields = ('username', 'email')