diff options
author | Philip Sargent <philip.sargent@klebos.com> | 2020-08-02 23:53:35 +0100 |
---|---|---|
committer | Philip Sargent <philip.sargent@klebos.com> | 2020-08-02 23:53:35 +0100 |
commit | d61c2b20c832557b4ce65df53bc94c6c1bd1ef65 (patch) | |
tree | e7802f319a2b4547350b43ede3dcd45b6c9166c5 /core/forms.py | |
parent | 3dcc8883cd69d4289bb89f6fa3180d63dea542b9 (diff) | |
download | troggle-d61c2b20c832557b4ce65df53bc94c6c1bd1ef65.tar.gz troggle-d61c2b20c832557b4ce65df53bc94c6c1bd1ef65.tar.bz2 troggle-d61c2b20c832557b4ce65df53bc94c6c1bd1ef65.zip |
Deleted archaisms and new comments
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. |