Removed debug
This commit is contained in:
parent
713595f5e8
commit
2346f814e7
@ -45,5 +45,5 @@ class PlaceImageCreateForm(forms.ModelForm):
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
super().__init__(*args, **kwargs)
|
||||
print(self.fields)
|
||||
|
||||
self.fields['filename'].required = False
|
||||
|
@ -31,7 +31,6 @@ def hello_world(request):
|
||||
class HomeView(View):
|
||||
def get(self, request, *args, **kwargs):
|
||||
place_list = Place.objects.all().order_by('submitted_when')[:10]
|
||||
print(place_list)
|
||||
context = {
|
||||
'place_list': place_list
|
||||
}
|
||||
@ -84,9 +83,7 @@ class PlaceCreateView(View):
|
||||
}
|
||||
return render(request, 'create_place.html', context)
|
||||
|
||||
def _apply_multipart_image_upload(self, files, place, submitter):
|
||||
print(files)
|
||||
for image in files:
|
||||
def _apply_multipart_image_upload(self, files, place, submitter)::
|
||||
place_image = PlaceImage.objects.create(
|
||||
filename=image,
|
||||
place=place,
|
||||
|
Loading…
Reference in New Issue
Block a user