2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-15 13:57:12 +00:00

comments trying to understand..

This commit is contained in:
2023-11-02 21:05:08 +02:00
parent 685131a4c1
commit c7cb8ece2e
2 changed files with 19 additions and 9 deletions

View File

@@ -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):