Module Expr Str ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias Assign NameStore Dict Str Str ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Num keyword Call AttributeLoad NameLoad attr keyword NameLoad keyword Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr keyword Call NameLoad NameLoad keyword Num keyword Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword Call NameLoad Str FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword SubscriptLoad AttributeLoad NameLoad attr Index Str handlers ExceptHandler type AttributeLoad NameLoad attr body Return SubscriptLoad AttributeLoad NameLoad attr Index Str Raise Call AttributeLoad NameLoad attr Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str If BoolOpAnd CompareIn Str AttributeLoad NameLoad attr CompareIn Str AttributeLoad NameLoad attr body If CompareNotEq SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str body Raise Call AttributeLoad NameLoad attr Call NameLoad Str Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword SubscriptLoad AttributeLoad NameLoad attr Index Str keyword SubscriptLoad AttributeLoad NameLoad attr Index Str keyword SubscriptLoad AttributeLoad NameLoad attr Index Str keyword NameLoad Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr keyword NameLoad keyword Call NameLoad Str FunctionDef arguments args NameParam defaults body Expr Str If Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad body Return SubscriptLoad AttributeLoad NameLoad attr Index Str Raise Call AttributeLoad NameLoad attr Call NameLoad Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str If Call AttributeLoad AttributeLoad NameLoad attr attr keyword SubscriptLoad AttributeLoad NameLoad attr Index Str body Raise Call AttributeLoad NameLoad attr Call NameLoad Str Return SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Str Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore SubscriptLoad Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Str Index Num If CompareIn NameLoad AttributeLoad NameLoad attr body Raise Call AttributeLoad NameLoad attr Call NameLoad Str Return SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list decorator_list
N/A N/A 
Forms and validation code for user registration.

 django forms django.utils.translation ugettext_lazy _ django.contrib.auth.models User registration.models RegistrationProfile N/A attrs_dict N/A class required RegistrationForm N/A N/A forms Form N/A N/A 
    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 either preserve the base ``save()`` or implement
    a ``save()`` which accepts the ``profile_callback`` keyword
    argument and passes it through to
    ``RegistrationProfile.objects.create_inactive_user()``.
    
     N/A username N/A N/A forms RegexField regex ^\w+$ max_length 30 widget N/A N/A forms TextInput attrs attrs_dict label N/A _ username N/A email N/A N/A forms EmailField widget N/A N/A forms TextInput attrs N/A dict attrs_dict maxlength 75 label N/A _ email address N/A password1 N/A N/A forms CharField widget N/A N/A forms PasswordInput attrs attrs_dict render_value False label N/A _ password N/A password2 N/A N/A forms CharField widget N/A N/A forms PasswordInput attrs attrs_dict render_value False label N/A _ password (again) clean_username N/A N/A self N/A N/A N/A 
        Validate that the username is alphanumeric and is not already
        in use.
        
         N/A N/A N/A user N/A N/A N/A User objects get username__iexact N/A N/A self cleaned_data N/A username N/A N/A N/A N/A User DoesNotExist N/A N/A N/A N/A self cleaned_data N/A username N/A N/A N/A forms ValidationError N/A _ This username is already taken. Please choose another. N/A clean N/A N/A self N/A N/A N/A 
        Verifiy that the values entered into the two password fields
        match. Note that an error here will end up in
        ``non_field_errors()`` because it doesn't apply to a single
        field.
        
         N/A N/A N/A password1 N/A self cleaned_data N/A password2 N/A self cleaned_data N/A N/A N/A N/A N/A self cleaned_data N/A password1 N/A N/A self cleaned_data N/A password2 N/A N/A N/A N/A forms ValidationError N/A _ You must type the same password each time N/A N/A self cleaned_data N/A save N/A N/A self profile_callback N/A None N/A N/A 
        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.
        
         N/A new_user N/A N/A N/A RegistrationProfile objects create_inactive_user username N/A N/A self cleaned_data N/A username password N/A N/A self cleaned_data N/A password1 email N/A N/A self cleaned_data N/A email profile_callback profile_callback N/A new_user N/A N/A RegistrationFormTermsOfService N/A RegistrationForm N/A N/A 
    Subclass of ``RegistrationForm`` which adds a required checkbox
    for agreeing to a site's Terms of Service.
    
     N/A tos N/A N/A forms BooleanField widget N/A N/A forms CheckboxInput attrs attrs_dict label N/A _ I have read and agree to the Terms of Service clean_tos N/A N/A self N/A N/A N/A 
        Validate that the user accepted the Terms of Service.
        
         N/A N/A N/A N/A self cleaned_data get tos False N/A N/A N/A N/A self cleaned_data N/A tos N/A N/A N/A forms ValidationError N/A _ You must agree to the terms to register N/A N/A RegistrationFormUniqueEmail N/A RegistrationForm N/A N/A 
    Subclass of ``RegistrationForm`` which enforces uniqueness of
    email addresses.
    
     clean_email N/A N/A self N/A N/A N/A 
        Validate that the supplied email address is unique for the
        site.
        
         N/A N/A N/A N/A User objects filter email__iexact N/A N/A self cleaned_data N/A email N/A N/A N/A N/A forms ValidationError N/A _ This email address is already in use. Please supply a different email address. N/A N/A N/A self cleaned_data N/A email N/A N/A RegistrationFormNoFreeEmail N/A RegistrationForm N/A N/A 
    Subclass of ``RegistrationForm`` which disallows registration with
    email addresses from popular free webmail services; moderately
    useful for preventing automated spam registrations.
    
    To change the list of banned domains, subclass this form and
    override the attribute ``bad_domains``.
    
     N/A bad_domains N/A aim.com aol.com email.com gmail.com googlemail.com hotmail.com hushmail.com msn.com mail.ru mailinator.com live.com clean_email N/A N/A self N/A N/A N/A 
        Check the supplied email address against a list of known free
        webmail domains.
        
         N/A email_domain N/A N/A N/A N/A N/A self cleaned_data N/A email split @ N/A 1 N/A N/A email_domain N/A self bad_domains N/A N/A N/A N/A forms ValidationError N/A _ Registration using free email addresses is prohibited. Please supply a different email address. N/A N/A N/A self cleaned_data N/A email N/A N/A