Account Forms

class account.forms.ProfileChangeForm

A form for changing a user’s name.

class Meta

The Meta class creates form fields from model fields. In this case the model being used is User, and the user’s first_name and last_name fields are being used.

fields = ('first_name', 'last_name')

Fields used.

model

alias of account.models.User

class account.forms.UserCreationForm

A form for creating new users with the given information.

class Meta

The Meta class creates form fields from model fields. In this case the model being used is User, and the user’s email field is being used.

fields = ('email',)

Fields used.

model

alias of account.models.User

clean_group_code()

Checks that the entered group code matches a group

clean_password2()

A function to check that the two passwords provided by the user match.

email = None

Email associated with the user. Users are identified by this email address. [Jflag repet w/ meta?]

save(commit=True)

Save this form’s self.instance object if commit=True. Otherwise, add a save_m2m() method to the form which can be called after the instance is saved manually at a later time. Return the model instance.

class account.forms.UserLoginForm

A form for user login using aws credentials.

class Meta

The Meta class creates form fields from model fields. In this case the model being used is IAM, and the user’s aws_access_key and aws_secret_access_key fields are being used.

fields = ('email', 'password')

Fields used.

model

alias of account.models.User

email = None

AWS access key. [Jflag repet w/ meta?]

password = None

AWS secret access key. [Jflag repet w/ meta?]

account.forms

alias of account.forms