diff options
-rw-r--r-- | aloha/allotter/views.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/aloha/allotter/views.py b/aloha/allotter/views.py index 6dad9c4..ab4232a 100644 --- a/aloha/allotter/views.py +++ b/aloha/allotter/views.py @@ -42,7 +42,7 @@ def user_login(request): if form.is_valid(): user = form.cleaned_data login(request, user) - status = user.get_profile().application.submitted #Getting the submission status + status = user.get_profile().application.submitted #Getting the submission status if status: return HttpResponseRedirect(reverse('allotter.views.complete_allotment', args=(user.username,))) else: @@ -62,7 +62,10 @@ def submit_details(request, reg_no): Get the secondary email address, phone number and save it to the Profile. """ user = request.user - + category = user.get_profile().application.cgy #Getting the Category information + #Flag set based on OBC Check + if category == "B": cat_flag = True + else: cat_flag = False if request.method == "POST": form = UserDetailsForm(user, request.POST) if form.is_valid(): @@ -74,7 +77,7 @@ def submit_details(request, reg_no): else: form = UserDetailsForm(request.user) - context = {"form": form} + context = {"form": form, "cat_flag": cat_flag} return render(request, 'allotter/details.html', context) def get_details(user, error_message = ""): |