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)
|
super().__init__(*args, **kwargs)
|
||||||
|
|
||||||
self.fields['filename'].required = False
|
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 (
|
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')
|
||||||
|
Loading…
Reference in New Issue
Block a user