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:
Chris Hill-Scott
2020-03-16 15:07:34 +00:00
parent cb555a4cbe
commit b5d279e890
2 changed files with 2 additions and 4 deletions

View File

@@ -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,
))

View File

@@ -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,
)
)