summaryrefslogtreecommitdiffstats
path: root/core/forms.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2024-12-14 00:27:19 +0000
committerPhilip Sargent <philip.sargent@gmail.com>2024-12-14 00:27:19 +0000
commitcfc7a4b9f6de8d9df35fd2e4ad67e9330f6bfa90 (patch)
tree47a2614350a79e4f3cb2a116fe61f1f696ba19e0 /core/forms.py
parent7730b2535f1f88740ac1f683b608d594054f7db8 (diff)
downloadtroggle-cfc7a4b9f6de8d9df35fd2e4ad67e9330f6bfa90.tar.gz
troggle-cfc7a4b9f6de8d9df35fd2e4ad67e9330f6bfa90.tar.bz2
troggle-cfc7a4b9f6de8d9df35fd2e4ad67e9330f6bfa90.zip
Make edit fields wider
Diffstat (limited to 'core/forms.py')
-rw-r--r--core/forms.py12
1 files changed, 5 insertions, 7 deletions
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.