Skip to content

Commit

Permalink
added redirect to settings view
Browse files Browse the repository at this point in the history
  • Loading branch information
slafs authored and jezdez committed Dec 2, 2010
1 parent 5b3edaf commit 6d7cdd9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion notification/views.py
Expand Up @@ -76,7 +76,11 @@ def notice_settings(request):
setting.save() setting.save()
settings_row.append((form_label, setting.send)) settings_row.append((form_label, setting.send))
settings_table.append({"notice_type": notice_type, "cells": settings_row}) 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 = { notice_settings = {
"column_headers": [medium_display for medium_id, medium_display in NOTICE_MEDIA], "column_headers": [medium_display for medium_id, medium_display in NOTICE_MEDIA],
"rows": settings_table, "rows": settings_table,
Expand Down

0 comments on commit 6d7cdd9

Please sign in to comment.