diff options
author | Philip Sargent <philip.sargent@klebos.com> | 2021-04-02 15:51:14 +0100 |
---|---|---|
committer | Philip Sargent <philip.sargent@klebos.com> | 2021-04-02 15:51:14 +0100 |
commit | d841faa0572dd6652348ee9b34c2d8c754801455 (patch) | |
tree | 23e99a9d8c8a0d454b42b859d9415cef7e4d74a1 /core/admin.py | |
parent | c8cc1673e0d5329d369a35ff22eedf141e2d2a74 (diff) | |
download | troggle-d841faa0572dd6652348ee9b34c2d8c754801455.tar.gz troggle-d841faa0572dd6652348ee9b34c2d8c754801455.tar.bz2 troggle-d841faa0572dd6652348ee9b34c2d8c754801455.zip |
login decorator moved into views & .gitignore
Diffstat (limited to 'core/admin.py')
-rw-r--r-- | core/admin.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/admin.py b/core/admin.py index 5f62fbd..375bdc7 100644 --- a/core/admin.py +++ b/core/admin.py @@ -9,6 +9,12 @@ from troggle.core.models import Person, PersonExpedition, Expedition, DataIssue from troggle.core.models_caves import Cave, Area, Entrance, CaveAndEntrance, LogbookEntry, PersonTrip, QM from troggle.core.models_survex import SurvexBlock, SurvexPersonRole, SurvexStation, ScansFolder, SingleScan +'''This code significantly adds to the capabilities of the Django Management control panel for Troggle data. +In particular, it enables JSON export of any data with 'export_as_json' +and configures the search fields to be used within the control panel. + +What is the search path for the css and js inclusions in the Media subclasses though ?! +''' class TroggleModelAdmin(admin.ModelAdmin): |