mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-15 15:28:50 -04:00
Redirect to uploads after save contact list
The saved uploads page just shows you the same thing you’ve seen on the previous page – a list of email addresses. It’s more useful to see the uploads page, so you can see where the thing you’ve saved has gone. You can see it more in context.
This commit is contained in:
@@ -429,9 +429,8 @@ def check_contact_list(service_id, upload_id):
|
||||
def save_contact_list(service_id, upload_id):
|
||||
ContactList.create(current_service.id, upload_id)
|
||||
return redirect(url_for(
|
||||
'.contact_list',
|
||||
'.uploads',
|
||||
service_id=current_service.id,
|
||||
contact_list_id=upload_id,
|
||||
))
|
||||
|
||||
|
||||
|
||||
@@ -1138,9 +1138,8 @@ def test_save_contact_list(
|
||||
upload_id=fake_uuid,
|
||||
_expected_status=302,
|
||||
_expected_redirect=url_for(
|
||||
'main.contact_list',
|
||||
'main.uploads',
|
||||
service_id=SERVICE_ONE_ID,
|
||||
contact_list_id=fake_uuid,
|
||||
_external=True,
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user