From cf3757f57aff3d9ed6467288488be4624998a9f5 Mon Sep 17 00:00:00 2001 From: Primal Pappachan Date: Thu, 12 Apr 2012 13:05:32 +0530 Subject: check for non empty --- aloha/allotter/forms.py | 6 +++--- 1 file 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 -- cgit