2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-14 21:57:09 +00:00

tidy up entranceSlug all now deleted

This commit is contained in:
2023-03-28 20:30:00 +01:00
parent e7d9e9402a
commit 9ffe3f690b
5 changed files with 10 additions and 75 deletions

View File

@@ -157,13 +157,13 @@ class EntranceForm(ModelForm):
return self.cleaned_data
# This next line is called from the templates/edit_cave2.html template.
# 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
class EntranceLetterForm(ModelForm):
"""Form to link entrances to caves, along with an entrance number.