diff options
author | Primal Pappachan | 2012-04-12 13:05:32 +0530 |
---|---|---|
committer | Primal Pappachan | 2012-04-12 13:05:32 +0530 |
commit | cf3757f57aff3d9ed6467288488be4624998a9f5 (patch) | |
tree | 4ce263716b1f1da73adca985a0fb93a5ec4f766b | |
parent | d25d1e95b635e2b42f41e325542821aac63c9732 (diff) | |
download | aloha-cf3757f57aff3d9ed6467288488be4624998a9f5.tar.gz aloha-cf3757f57aff3d9ed6467288488be4624998a9f5.tar.bz2 aloha-cf3757f57aff3d9ed6467288488be4624998a9f5.zip |
check for non empty
-rw-r--r-- | aloha/allotter/forms.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/aloha/allotter/forms.py b/aloha/allotter/forms.py index 5112884..431a939 100644 --- a/aloha/allotter/forms.py +++ b/aloha/allotter/forms.py @@ -204,16 +204,16 @@ class UserDetailsForm(forms.Form): tenth = self.cleaned_data['tenth_perc'] twelfth = self.cleaned_data['twelfth_perc'] bachelor = self.cleaned_data['bachelor_perc'] - if email and phone_number and tenth and twelfth and bachelor: user_profile.secondary_email = email - user_profile.phone_number = phone_number + user_profile.phone_number = phone_number user_profile.tenth_perc = tenth user_profile.twelfth_perc = twelfth - user_profile.bachelors_perc = bachelor + user_profile.bachelors_perc = bachelor else: raise forms.ValidationError("Make sure that you have entered all the details.") + user_application = user_profile.application user_application.cgy = category |