Removed obsoleted checkbox form.

This commit is contained in:
Marcus Scholz 2020-08-11 10:34:39 +02:00
parent 86d7212060
commit 147c0e8dfe
2 changed files with 1 additions and 6 deletions

View File

@ -48,6 +48,3 @@ class PlaceImageCreateForm(forms.ModelForm):
super().__init__(*args, **kwargs) super().__init__(*args, **kwargs)
self.fields['filename'].required = False self.fields['filename'].required = False
class PlaceDeleteForm(forms.Form):
confirm_check = forms.CheckboxInput()

View File

@ -11,8 +11,7 @@ from django.http import Http404
from .forms import ( from .forms import (
ExplorerCreationForm, ExplorerCreationForm,
PlaceForm, PlaceForm,
PlaceImageCreateForm, PlaceImageCreateForm
PlaceDeleteForm
) )
from .models import Place, PlaceImage, Voucher from .models import Place, PlaceImage, Voucher
@ -99,7 +98,6 @@ class PlaceCreateView(View):
class PlaceDeleteView(DeleteView): class PlaceDeleteView(DeleteView):
template_name = 'place/place_delete.html' template_name = 'place/place_delete.html'
model = Place model = Place
form_class = PlaceDeleteForm
def get_success_url(self): def get_success_url(self):
return reverse_lazy('place_list') return reverse_lazy('place_list')