2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-11-25 08:41:51 +00:00
This commit is contained in:
Philip Sargent 2023-09-14 13:40:33 +03:00
parent 0295fce110
commit 1085a14b92
2 changed files with 4 additions and 2 deletions

View File

@ -274,7 +274,9 @@ def walletedit(request, path=None):
This does NOT use a Django model linked to a Django form. Just a simple Django form. This does NOT use a Django model linked to a Django form. Just a simple Django form.
You will find the Django documentation on forms very confusing, You will find the Django documentation on forms very confusing,
as it covers many very different things we do not need. This is simpler. as it covers many very different things we do not need. This is simpler,
or at least, it is all in one place and you can see what it does, inctead of using invisible
Django defaults that a newcomer can't find.
(See also view/uploads.py for other simpler forms, as opposed to core/forms.py (See also view/uploads.py for other simpler forms, as opposed to core/forms.py
which contains a couple of Django class-based forms.) which contains a couple of Django class-based forms.)

View File

@ -143,7 +143,7 @@ def create_new_cave(svxpath, msg=None):
raise raise
# we know what the survex file is, we don't need to use the guess. # we know what the survex file is, we don't need to use the guess.
# But this sets the survex file on he cave from the first one we find, not necessarily the best survex file for this cave # But this sets the survex file on the cave from the first one we find, not necessarily the best survex file for this cave
cave.survex_file=survex_file cave.survex_file=survex_file
cave.areacode=areacode cave.areacode=areacode
cave.save() cave.save()