From 1085a14b92c395cd87e8c5fc3fa420b302f3ab73 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Thu, 14 Sep 2023 13:40:33 +0300 Subject: [PATCH] comments --- core/views/wallets_edit.py | 4 +++- parsers/caves.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/core/views/wallets_edit.py b/core/views/wallets_edit.py index 19b80f7..af82acb 100644 --- a/core/views/wallets_edit.py +++ b/core/views/wallets_edit.py @@ -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. 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 which contains a couple of Django class-based forms.) diff --git a/parsers/caves.py b/parsers/caves.py index d89aae0..272deaf 100644 --- a/parsers/caves.py +++ b/parsers/caves.py @@ -143,7 +143,7 @@ def create_new_cave(svxpath, msg=None): raise # 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.areacode=areacode cave.save()