Syntax error

This commit is contained in:
Leonhard Strohmidel 2020-07-30 14:27:17 +02:00
parent 29245d1e5f
commit bf0d20dbbd

View File

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