Module Expr Str Assign NameStore Str ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias identifier ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword SubscriptLoad AttributeLoad NameLoad attr Index Str If Call AttributeLoad NameLoad attr body Raise Call AttributeLoad NameLoad attr Call NameLoad Str orelse Return SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list 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 If Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str body Return SubscriptLoad AttributeLoad NameLoad attr Index 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 decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str ClassDef bases body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore TupleLoad Str Str Str Str Str Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr ClassDef bases body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore TupleLoad Str Str Str Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Raise Call AttributeLoad NameLoad attr Call NameLoad BinOpAdd BinOpAdd Str NameLoad Str If CompareNotEq AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index 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 AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A 
   Copyright 2013, 2014 Ricardo Tubio-Pardavila

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
 N/A __author__ rtubiopa@calpoly.edu django forms django.core exceptions django.contrib.auth.models User django.utils.translation ugettext_lazy _ N/A utils services.accounts models account_models BaseUserProfileForm N/A N/A forms ModelForm N/A N/A 
    Base class with common methods for all those forms that deal with the
    UserProfile model.
     clean_username N/A N/A self N/A N/A N/A 
        Validate that the username is not already in use.
         N/A existing N/A N/A N/A User objects filter username__iexact N/A N/A self cleaned_data N/A username N/A N/A N/A existing exists N/A N/A N/A N/A forms ValidationError N/A _ A user with that username already exists. N/A N/A N/A N/A self cleaned_data N/A username N/A clean_email N/A N/A self N/A N/A N/A 
        Validate that the email is unique in the database and that it is not
        part of a free email provider.
         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 provide adifferent email address. N/A N/A N/A BaseUserProfileForm validate_email N/A N/A self cleaned_data N/A email N/A N/A N/A N/A self cleaned_data N/A email 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 password N/A self cleaned_data N/A password_c N/A self cleaned_data N/A N/A N/A N/A N/A self cleaned_data N/A password N/A N/A self cleaned_data N/A password_c N/A N/A N/A N/A forms ValidationError N/A _ The two password fields didn't match. N/A N/A self cleaned_data N/A N/A RegistrationForm N/A N/A forms ModelForm N/A N/A Form for registering a new user in the system.
     Meta N/A N/A N/A Model to be used from within this form.
         N/A model N/A account_models UserProfile N/A fields N/A username first_name last_name email organization country N/A signup N/A N/A self request user N/A N/A N/A (Overriden) save() method for ModelForm.
        This method has to be overriden for saving the UserProfile that
        extends the basic User handled by the Django auth system.
        :param user: User linked with this UserProfile
        :param request: The HTTP request to be processed
         N/A profile N/A N/A account_models UserProfile N/A N/A profile user_ptr user N/A N/A profile organization N/A N/A self cleaned_data N/A organization N/A N/A profile country N/A N/A self cleaned_data N/A country N/A N/A profile blocked False N/A N/A profile is_verified False N/A N/A N/A profile save N/A N/A user username N/A N/A self cleaned_data N/A username N/A N/A user first_name N/A N/A self cleaned_data N/A first_name N/A N/A user last_name N/A N/A self cleaned_data N/A last_name N/A N/A user email N/A N/A self cleaned_data N/A email N/A N/A user is_superuser False N/A N/A user is_staff False N/A N/A user is_active False N/A N/A N/A user set_password N/A N/A self cleaned_data N/A password1 N/A N/A N/A user save N/A N/A ProfileUpdateForm N/A N/A forms ModelForm N/A N/A Form for updating the profile of an existing user.
     N/A username N/A N/A forms CharField widget N/A forms HiddenInput Meta N/A N/A N/A Model to be used from within this form. N/A model N/A account_models UserProfile N/A fields N/A username first_name last_name email organization country N/A clean N/A N/A self N/A N/A N/A 
        The username is not going to be changed, so no further comprobations
        have to be made.
         N/A username N/A N/A self cleaned_data N/A username N/A new_email N/A N/A self cleaned_data N/A email N/A N/A N/A user N/A N/A N/A User objects get username username N/A N/A N/A N/A exceptions ObjectDoesNotExist N/A N/A N/A N/A forms ValidationError N/A _ N/A N/A The given username = < username > does not exist in the database. N/A N/A N/A user email new_email N/A N/A N/A N/A utils validate_email N/A N/A self cleaned_data N/A email 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 providea different email address. N/A N/A self cleaned_data N/A N/A