diff options
-rw-r--r-- | aloha/allotter/forms.py | 6 | ||||
-rw-r--r-- | aloha/template/allotter/complete.html | 2 |
2 files changed, 4 insertions, 4 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 diff --git a/aloha/template/allotter/complete.html b/aloha/template/allotter/complete.html index 01c884b..d95ef0f 100644 --- a/aloha/template/allotter/complete.html +++ b/aloha/template/allotter/complete.html @@ -104,7 +104,7 @@ your completed application form to the "Organizing chairman, GATE-JAM 2012, IIT <div class="alert alert-error"> -<p><input type="checkbox" name="check" id="check"/><label for="check">I have downloaded 2 PDF's that together consitute my application.</label> +<p><input type="checkbox" name="check" id="check"/><label for="check">I have downloaded 2 PDF's that together constitute my application.</label> </p> <input type="submit" name="logout" value="Quit Admission Application" class="btn" id="checkButton" disabled="disabled" /> <p>This will finish the application procedure and the choices |