From bf0d20dbbd1f117fa4d9b9f3d6fbe086f545d80a Mon Sep 17 00:00:00 2001 From: Leonhard Strohmidel Date: Thu, 30 Jul 2020 14:27:17 +0200 Subject: [PATCH] Syntax error --- lostplaces/lostplaces_app/views.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/lostplaces/lostplaces_app/views.py b/lostplaces/lostplaces_app/views.py index 9466fb3..b2c8c63 100644 --- a/lostplaces/lostplaces_app/views.py +++ b/lostplaces/lostplaces_app/views.py @@ -32,7 +32,7 @@ class PlaceEditView(View): place_form = PlaceForm(instance=place) else: place_form = PlaceForm() - + context = { 'place_form': place_form, 'place_image_form': place_image_form @@ -66,11 +66,11 @@ class PlaceEditView(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, - submitted_by=submitter - ) - place_image.save() + def _apply_multipart_image_upload(self, files, place, submitter): + for image in files: + place_image = PlaceImage.objects.create( + filename=image, + place=place, + submitted_by=submitter + ) + place_image.save()