400 Response when submitting invalid place data and testing more edge cases

This commit is contained in:
2021-06-12 15:52:52 +02:00
parent b0bf40aa0b
commit 4f465b3162
2 changed files with 124 additions and 42 deletions

View File

@@ -111,7 +111,8 @@ class PlaceCreateView(MultiplePlaceImageUploadMixin, IsAuthenticatedMixin, View)
context={
'place_form': place_form,
'place_image_form': PlaceImageForm()
}
},
status=400
)
class PlaceDeleteView(IsAuthenticatedMixin, IsPlaceSubmitterMixin, DeleteView):