Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added redirect to settings view

  • Loading branch information...
commit 6d7cdd922c264233b6eac060ba1d379914f7dc54 1 parent 5b3edaf
@slafs slafs authored jezdez committed
Showing with 5 additions and 1 deletion.
  1. +5 −1 notification/views.py
View
6 notification/views.py
@@ -76,7 +76,11 @@ def notice_settings(request):
setting.save()
settings_row.append((form_label, setting.send))
settings_table.append({"notice_type": notice_type, "cells": settings_row})
-
+
+ if request.method == "POST":
+ next_page = request.POST.get("next_page", ".")
+ return HttpResponseRedirect(next_page)
+
notice_settings = {
"column_headers": [medium_display for medium_id, medium_display in NOTICE_MEDIA],
"rows": settings_table,
Please sign in to comment.
Something went wrong with that request. Please try again.