diff --git a/lostplaces/lostplaces_app/forms.py b/lostplaces/lostplaces_app/forms.py index 9f7130c..d88d090 100644 --- a/lostplaces/lostplaces_app/forms.py +++ b/lostplaces/lostplaces_app/forms.py @@ -48,6 +48,3 @@ class PlaceImageCreateForm(forms.ModelForm): super().__init__(*args, **kwargs) self.fields['filename'].required = False - -class PlaceDeleteForm(forms.Form): - confirm_check = forms.CheckboxInput() diff --git a/lostplaces/lostplaces_app/views.py b/lostplaces/lostplaces_app/views.py index 98480dc..ab0b67b 100644 --- a/lostplaces/lostplaces_app/views.py +++ b/lostplaces/lostplaces_app/views.py @@ -11,8 +11,7 @@ from django.http import Http404 from .forms import ( ExplorerCreationForm, PlaceForm, - PlaceImageCreateForm, - PlaceDeleteForm + PlaceImageCreateForm ) from .models import Place, PlaceImage, Voucher @@ -99,7 +98,6 @@ class PlaceCreateView(View): class PlaceDeleteView(DeleteView): template_name = 'place/place_delete.html' model = Place - form_class = PlaceDeleteForm def get_success_url(self): return reverse_lazy('place_list')