oioioi.base.forms
¶
Module Contents¶
Classes¶
Base class for Captcha widgets |
|
Form for registering a new user account. |
|
The main implementation of all the Form logic. Note that this class is |
|
The main implementation of all the Form logic. Note that this class is |
|
A form that creates a user, with no privileges, from the given username and |
|
The main implementation of all the Form logic. Note that this class is |
|
A collection of Fields, plus their associated data. |
|
The main implementation of all the Form logic. Note that this class is |
Functions¶
|
|
|
|
|
|
|
|
|
|
|
|
|
- oioioi.base.forms.adjust_unicode_field(form, field_name, help_text, invalid_message, unicode_categories=None, allow_spaces=True)[source]¶
- class oioioi.base.forms.CustomCaptchaTextInput(attrs=None, field_template=None, id_prefix=None, generator=None, output_format=None)[source]¶
Bases:
captcha.fields.CaptchaTextInput
Base class for Captcha widgets
- class oioioi.base.forms.RegistrationFormWithNames(*args, **kwargs)[source]¶
Bases:
registration.forms.RegistrationForm
Form for registering a new user account.
Validates that the requested username is not already in use, and requires the password to be entered twice to catch typos.
Subclasses should feel free to add any additional validation they need, but should avoid defining a
save()
method – the actual saving of collected user data is delegated to the active registration backend.
- class oioioi.base.forms.UserForm(*args, **kwargs)[source]¶
Bases:
django.forms.ModelForm
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 oioioi.base.forms.OioioiUserForm(*args, **kwargs)[source]¶
Bases:
UserForm
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 oioioi.base.forms.OioioiUserCreationForm(*args, **kwargs)[source]¶
Bases:
django.contrib.auth.forms.UserCreationForm
A form that creates a user, with no privileges, from the given username and password.
- class oioioi.base.forms.OioioiUserChangeForm(*args, **kwargs)[source]¶
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 oioioi.base.forms.OioioiPasswordResetForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=ErrorList, label_suffix=None, empty_permitted=False, field_order=None, use_required_attribute=None, renderer=None)[source]¶
Bases:
django.contrib.auth.forms.PasswordResetForm
A collection of Fields, plus their associated data.
- class oioioi.base.forms.AlwaysChangedModelForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=ErrorList, label_suffix=None, empty_permitted=False, instance=None, use_required_attribute=None, renderer=None)[source]¶
Bases:
django.forms.ModelForm
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.