summaryrefslogtreecommitdiffstats
path: root/core/forms.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2023-11-02 21:05:08 +0200
committerPhilip Sargent <philip.sargent@gmail.com>2023-11-02 21:05:08 +0200
commitc7cb8ece2eb8f7c711f5fce4c2f53b319011955d (patch)
tree87ae07817c6192f6203b92cb9a3a89b51954e757 /core/forms.py
parent685131a4c16578d6370cdd8db37f8b0cc4d7fa1f (diff)
downloadtroggle-c7cb8ece2eb8f7c711f5fce4c2f53b319011955d.tar.gz
troggle-c7cb8ece2eb8f7c711f5fce4c2f53b319011955d.tar.bz2
troggle-c7cb8ece2eb8f7c711f5fce4c2f53b319011955d.zip
comments trying to understand..
Diffstat (limited to 'core/forms.py')
-rw-r--r--core/forms.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/core/forms.py b/core/forms.py
index 23b80ce..ede7d9e 100644
--- a/core/forms.py
+++ b/core/forms.py
@@ -16,7 +16,13 @@ import re
There are other, simpler, upload forms in view/uploads.py
class-based forms are quicker to set up (for Django experts) but
-are more difficult to maintain by non-Django experts.
+are more difficult to maintain (or even begin to understand) by non-Django experts.
+
+Notes to self, as I try to work out what the hell is going on:
+
+Note that HTMLarea invokes a widget which sets a CSS class which calls javascript in
+templates/html_editor_scripts_css.html - which imports jquery and codemirror directly, without
+declaring it anywhere or locally installing it. (!)
"""
todo = """
@@ -88,12 +94,6 @@ class CaveForm(ModelForm):
# Converting a PENDING cave to a real cave by saving this form
print("EEE", cave_slug.replace("-PENDING-", "-"))
return cave_slug.replace("-PENDING-", "-")
-
-# def clean_url(self):
-# data = self.cleaned_data["url"]
-# if not re.match("\d\d\d\d/.", data):
-# raise ValidationError("URL must start with a four digit Kataster area.")
-# return data
def clean(self):