profile/forms.py
changeset 300 ce5f3cdbd545
parent 269 dde894b36370
equal deleted inserted replaced
299:8f50caa63cd1 300:ce5f3cdbd545
    11 
    11 
    12 class CustomRegistrationForm(RegistrationFormUniqueEmail):
    12 class CustomRegistrationForm(RegistrationFormUniqueEmail):
    13     """Used instead of RegistrationForm used by default django-registration
    13     """Used instead of RegistrationForm used by default django-registration
    14     backend, this adds aboutme, dob, gender, address, phonenum to the default 
    14     backend, this adds aboutme, dob, gender, address, phonenum to the default 
    15     django-registration RegistrationForm"""
    15     django-registration RegistrationForm"""
       
    16 
       
    17     full_name = forms.CharField(required=True, max_length=50, 
       
    18                                 label="Name as on your bank account", 
       
    19                                 help_text="Any DD/Cheque will be issued on \
       
    20                                            this name")
    16 
    21 
    17     aboutme = forms.CharField(required=True, max_length=1000, label=u"About Me",
    22     aboutme = forms.CharField(required=True, max_length=1000, label=u"About Me",
    18                               help_text="A write up about yourself to aid the\
    23                               help_text="A write up about yourself to aid the\
    19                               reviewer in judging your eligibility for a task.\
    24                               reviewer in judging your eligibility for a task.\
    20                               It can have your educational background, CGPA,\
    25                               It can have your educational background, CGPA,\
    83 
    88 
    84 class EditProfileForm(forms.ModelForm):
    89 class EditProfileForm(forms.ModelForm):
    85 
    90 
    86     class Meta:
    91     class Meta:
    87         model = Profile
    92         model = Profile
    88         fields = ['aboutme', 'gender', 'dob', 'address', 'phonenum']
    93         fields = ['full_name', 'aboutme', 'gender', 'dob', 'address', 'phonenum']