From cfc7a4b9f6de8d9df35fd2e4ad67e9330f6bfa90 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Sat, 14 Dec 2024 00:27:19 +0000 Subject: Make edit fields wider --- core/forms.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'core/forms.py') diff --git a/core/forms.py b/core/forms.py index aeaa7ed..88f8345 100644 --- a/core/forms.py +++ b/core/forms.py @@ -226,13 +226,11 @@ class EntranceForm(ModelForm): return self.cleaned_data -# This next line is called from the templates/edit_cave.html template. -# This is sufficient to create an entire entry for for the cave fields automatically -# http://localhost:8000/cave/new/ -# using django built-in Deep Magic. https://docs.djangoproject.com/en/dev/topics/forms/modelforms/ -# for forms which map directly onto a Django Model -CaveAndEntranceFormSet = modelformset_factory(CaveAndEntrance, exclude=("cave",)) -# This is used only in edit_entrance() in views/caves.py +# # This next line is sufficient to create an entire entry for for the cave fields automatically +# # using django built-in Deep Magic. https://docs.djangoproject.com/en/dev/topics/forms/modelforms/ +# # for forms which map directly onto a Django Model +# CaveAndEntranceFormSet = modelformset_factory(CaveAndEntrance, exclude=("cave",)) +# # This is used only in templates/editcave.html which is called only to edit caves in core/views/cave.py class EntranceLetterForm(ModelForm): """Form to link entrances to caves, along with an entrance number. -- cgit v1.2.3