Removed obsoleted checkbox form.
This commit is contained in:
parent
86d7212060
commit
147c0e8dfe
@ -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()
|
||||
|
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user