Removed debug
This commit is contained in:
parent
713595f5e8
commit
2346f814e7
@ -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
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user