From 68db5fbc7a4c71acda7b9f0a8fe62235a549f3ba Mon Sep 17 00:00:00 2001 From: reverend Date: Sun, 9 Aug 2020 11:40:23 +0200 Subject: [PATCH] Fixed missing for scope --- lostplaces/lostplaces_app/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lostplaces/lostplaces_app/views.py b/lostplaces/lostplaces_app/views.py index 246c7e6..bf17980 100644 --- a/lostplaces/lostplaces_app/views.py +++ b/lostplaces/lostplaces_app/views.py @@ -88,6 +88,7 @@ class PlaceCreateView(View): return render(request, 'create_place.html', context) def _apply_multipart_image_upload(self, files, place, submitter): + for image in files: place_image = PlaceImage.objects.create( filename=image, place=place,