diff --git a/electionleaflets/apps/leaflets/views.py b/electionleaflets/apps/leaflets/views.py index 277d9acd..f3231bef 100644 --- a/electionleaflets/apps/leaflets/views.py +++ b/electionleaflets/apps/leaflets/views.py @@ -230,7 +230,7 @@ def done(self, form_list, **kwargs): "Bucket": bucket.name, "Key": file_path, } - new_file_name = f"leaflets/{file_name}" + new_file_name = f"leaflets/{leaflet.pk}/{file_name}" moved_file = bucket.Object(new_file_name) moved_file.copy(copy_source)