Package expedient :: Package clearinghouse :: Package users :: Module forms :: Class FullRegistrationForm
[hide private]
[frames] | no frames]

Class FullRegistrationForm

source code


Nested Classes [hide private]

Inherited from django.forms.forms.Form: __metaclass__

Instance Methods [hide private]
 
save(self, profile_callback=None)
Create the new ``User`` and ``RegistrationProfile``, and returns the ``User``.
source code

Inherited from registration.forms.RegistrationForm: clean, clean_username

Inherited from django.forms.forms.BaseForm: __getitem__, __init__, __iter__, __unicode__, add_initial_prefix, add_prefix, as_p, as_table, as_ul, full_clean, has_changed, hidden_fields, is_multipart, is_valid, non_field_errors, visible_fields

Inherited from django.forms.forms.BaseForm (private): _clean_fields, _clean_form, _get_changed_data, _get_errors, _get_media, _html_output, _post_clean, _raw_value

Inherited from django.utils.encoding.StrAndUnicode: __str__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Class Variables [hide private]
  first_name = forms.CharField(max_length= 40)
  last_name = forms.CharField(max_length= 40)
  affiliation = forms.CharField(max_length= 100, help_text= "The...
  base_fields = {'username': <django.forms.fields.RegexField obj...

Inherited from registration.forms.RegistrationForm: email, password1, password2, username

Properties [hide private]
  media
Provide a description of all media required to render the widgets on this form

Inherited from django.forms.forms.BaseForm: changed_data, errors

Inherited from object: __class__

Method Details [hide private]

save(self, profile_callback=None)

source code 

Create the new ``User`` and ``RegistrationProfile``, and returns the ``User``.

This is essentially a light wrapper around ``RegistrationProfile.objects.create_inactive_user()``, feeding it the form data and a profile callback (see the documentation on ``create_inactive_user()`` for details) if supplied.

Overrides: registration.forms.RegistrationForm.save
(inherited documentation)

Class Variable Details [hide private]

affiliation

Value:
forms.CharField(max_length= 100, help_text= "The organization that you\
 are affiliated with.")

base_fields

Value:
{'username': <django.forms.fields.RegexField object at 0x9250dec>, 'em\
ail': <django.forms.fields.EmailField object at 0x9250f6c>, 'password1\
': <django.forms.fields.CharField object at 0x91d602c>, 'password2': <\
django.forms.fields.CharField object at 0x91d60ac>, 'first_name': <dja\
ngo.forms.fields.CharField object at 0x91e04ac>, 'last_name': <django.\
forms.fields.CharField object at 0x91e1f2c>, 'affiliation': <django.fo\
rms.fields.CharField object at 0x91e1fac>}

Property Details [hide private]

media

Provide a description of all media required to render the widgets on this form

Get Method:
unreachable._media(self)