summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--aloha/allotter/forms.py6
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