Removed debug

This commit is contained in:
reverend 2020-08-04 20:04:46 +02:00
parent 713595f5e8
commit 2346f814e7
2 changed files with 2 additions and 5 deletions

View File

@ -45,5 +45,5 @@ class PlaceImageCreateForm(forms.ModelForm):
def __init__(self, *args, **kwargs): def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs) super().__init__(*args, **kwargs)
print(self.fields)
self.fields['filename'].required = False self.fields['filename'].required = False

View File

@ -31,7 +31,6 @@ def hello_world(request):
class HomeView(View): class HomeView(View):
def get(self, request, *args, **kwargs): def get(self, request, *args, **kwargs):
place_list = Place.objects.all().order_by('submitted_when')[:10] place_list = Place.objects.all().order_by('submitted_when')[:10]
print(place_list)
context = { context = {
'place_list': place_list 'place_list': place_list
} }
@ -84,9 +83,7 @@ class PlaceCreateView(View):
} }
return render(request, 'create_place.html', context) return render(request, 'create_place.html', context)
def _apply_multipart_image_upload(self, files, place, submitter): def _apply_multipart_image_upload(self, files, place, submitter)::
print(files)
for image in files:
place_image = PlaceImage.objects.create( place_image = PlaceImage.objects.create(
filename=image, filename=image,
place=place, place=place,