diff --git a/lostplaces/lostplaces_app/forms.py b/lostplaces/lostplaces_app/forms.py index 8650e92..9f7130c 100644 --- a/lostplaces/lostplaces_app/forms.py +++ b/lostplaces/lostplaces_app/forms.py @@ -49,7 +49,5 @@ class PlaceImageCreateForm(forms.ModelForm): self.fields['filename'].required = False -class PlaceDeleteForm(forms.ModelForm): - class Meta: - model = Place - fields = ['name'] +class PlaceDeleteForm(forms.Form): + confirm_check = forms.CheckboxInput() diff --git a/lostplaces/lostplaces_app/templates/delete_place.html b/lostplaces/lostplaces_app/templates/delete_place.html new file mode 100644 index 0000000..af9e948 --- /dev/null +++ b/lostplaces/lostplaces_app/templates/delete_place.html @@ -0,0 +1,18 @@ +{% extends 'global.html'%} +{% load static %} + +{% block title %}Lost Place Deletion{% endblock %} + +{% block maincontent %} +
+{% endblock maincontent %} \ No newline at end of file