From d61c2b20c832557b4ce65df53bc94c6c1bd1ef65 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Sun, 2 Aug 2020 23:53:35 +0100 Subject: Deleted archaisms and new comments --- core/forms.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'core/forms.py') 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. -- cgit v1.2.3