Commit 906b7ca8 authored by frekk's avatar frekk
Browse files

don't redirect to admin site from renewal form

parent d6e451ef
......@@ -181,7 +181,7 @@ class RenewView(LoginRequiredMixin, RegisterView):
def form_valid(self, form):
m, ms =
messages.success(self.request, 'Your membership renewal has been submitted.')
if self.request.user.is_staff:
return HttpResponseRedirect(reverse("admin:membership-approve",args=[]))
return HttpResponseRedirect(reverse("memberdb:home"))
# always redirect to member home on renewal - you can't renew for someone else, and it
# is confusing if you get redirected to the admin site
return HttpResponseRedirect(reverse("memberdb:home"))
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment