mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-19 05:59:44 -04:00
Return to main provider page after editing ratio
Staying on the edit page is atypical behaviour for an edit form, especially now it no longer shows the version history.
This commit is contained in:
@@ -77,7 +77,7 @@ def edit_sms_provider_ratio():
|
||||
if form.validate_on_submit():
|
||||
provider_client.update_provider(first_provider['id'], form.percentage_left)
|
||||
provider_client.update_provider(second_provider['id'], form.percentage_right)
|
||||
return redirect(url_for('.edit_sms_provider_ratio'))
|
||||
return redirect(url_for('.view_providers'))
|
||||
|
||||
return render_template(
|
||||
'views/providers/edit-sms-provider-ratio.html',
|
||||
|
||||
Reference in New Issue
Block a user