diff options
Diffstat (limited to 'core/forms.py')
-rw-r--r-- | core/forms.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/core/forms.py b/core/forms.py index 7816014..f86796a 100644 --- a/core/forms.py +++ b/core/forms.py @@ -65,7 +65,10 @@ class EntranceForm(ModelForm): return self.cleaned_data - +# This next is called from the templates/edit_cave2.html template. +# This is sufficeint to create an entire entry for for the cave fields automatically +# http://localhost:8000/cave/new/ +# using django built-in stuff: CaveAndEntranceFormSet = modelformset_factory(CaveAndEntrance, exclude=('cave',)) class EntranceLetterForm(ModelForm): @@ -153,6 +156,8 @@ def get_name(pe): return pe.person.first_name class UploadFileForm(forms.Form): + """Only called by views_others.newFile() whhich seems to be only about logbook files. + """ # Because this has EXECUTABLE statements in its signature (the fields) they get # executed when this module is LOADED. Which barfs horribly. # so all replaced by an __init__ method instead. |