2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-15 07:27:09 +00:00

Make edit fields wider

This commit is contained in:
2024-12-14 00:27:19 +00:00
parent 7730b2535f
commit cfc7a4b9f6
4 changed files with 22 additions and 23 deletions

View File

@@ -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.