From 7b09ee1a702f804ba0e3d9ed84842a61bafbd59b Mon Sep 17 00:00:00 2001 From: Mohit Anand Date: Wed, 7 Jun 2017 16:14:25 +0530 Subject: [PATCH] Updated view to handle redirection after bug submit --- website/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/views.py b/website/views.py index 89d041040..ae9a606f5 100644 --- a/website/views.py +++ b/website/views.py @@ -212,7 +212,7 @@ def form_valid(self, form): # assign issue self.process_issue(self.request.user, obj, created, domain) - return HttpResponseRedirect(redirect_url) + return HttpResponseRedirect(self.request.META.get('HTTP_REFERER')) def get_context_data(self, **kwargs):