Jump to >

reviewboard.accounts.forms.registration

class RegistrationForm(*args, **kwargs)[source]

Bases: djblets.recaptcha.mixins.RecaptchaFormMixin, reviewboard.accounts.mixins.PolicyConsentFormMixin, djblets.auth.forms.RegistrationForm

A registration form with reCAPTCHA support.

This is a version of the Djblets RegistrationForm which knows how to validate a reCAPTCHA widget. Any error received is stored in the form for use when generating the widget so that the widget can properly display the error.

save()[source]

Save the form.

verify_recaptcha[source]
declared_fields = {'email': <django.forms.fields.EmailField object>, 'first_name': <django.forms.fields.CharField object>, 'last_name': <django.forms.fields.CharField object>, 'password1': <django.forms.fields.CharField object>, 'password2': <django.forms.fields.CharField object>, 'username': <django.forms.fields.RegexField object>}[source]