summaryrefslogtreecommitdiffstats
path: root/core/forms.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@klebos.com>2022-03-17 00:41:29 +0000
committerPhilip Sargent <philip.sargent@klebos.com>2022-03-17 00:41:29 +0000
commit19d017a45712b0e59c5e7c3c0bd726cae0b7dda6 (patch)
tree79cc1771d2f95eaf72637c6a69e78c918e2535f8 /core/forms.py
parente34f162688cf7e06c030e25e67865a17337bdeb8 (diff)
downloadtroggle-19d017a45712b0e59c5e7c3c0bd726cae0b7dda6.tar.gz
troggle-19d017a45712b0e59c5e7c3c0bd726cae0b7dda6.tar.bz2
troggle-19d017a45712b0e59c5e7c3c0bd726cae0b7dda6.zip
Edit contents.json online
Diffstat (limited to 'core/forms.py')
-rw-r--r--core/forms.py11
1 files changed, 3 insertions, 8 deletions
diff --git a/core/forms.py b/core/forms.py
index a2727f8..08f7e6c 100644
--- a/core/forms.py
+++ b/core/forms.py
@@ -53,12 +53,6 @@ class CaveForm(ModelForm):
self._errors["url"] = self.error_class(["This field cannot start with a /."])
return self.cleaned_data
-# class VersionControlCommentForm(forms.Form):
- # '''Was appended to all forms. Not used currently
- # '''
- # description_of_change = forms.CharField(required = True, widget=forms.Textarea(attrs={'rows':2}))
-
-
class EntranceForm(ModelForm):
'''Only those fields for which we want to override defaults are listed here
the other fields are present on the form, but use the default presentaiton style
@@ -95,9 +89,10 @@ class EntranceForm(ModelForm):
# This next line is called from the templates/edit_cave2.html template.
-# This is sufficeint to create an entire entry for for the cave fields automatically
+# 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/2.2/topics/forms/modelforms/
+# using django built-in Deep Magic. https://docs.djangoproject.com/en/3.2/topics/forms/modelforms/
+# for forms which map directly onto a Django Model
CaveAndEntranceFormSet = modelformset_factory(CaveAndEntrance, exclude=('cave',))
class EntranceLetterForm(ModelForm):