kopia lustrzana https://github.com/wagtail/wagtail
remove comment that refers to logic now done in get_image_edit_form
rodzic
a2e643679b
commit
e605ac1120
|
@ -54,7 +54,6 @@ def add(request):
|
|||
Image = get_image_model()
|
||||
ImageForm = get_image_form()
|
||||
|
||||
# Create a new image form class which doesn't contain the file field
|
||||
if request.method == 'POST':
|
||||
if not request.is_ajax():
|
||||
return HttpResponseBadRequest("Cannot POST to this view without AJAX")
|
||||
|
|
Ładowanie…
Reference in New Issue