login decorator moved into views & .gitignore

This commit is contained in:
Philip Sargent
2021-04-02 15:51:14 +01:00
parent c8cc1673e0
commit d841faa057
8 changed files with 32 additions and 19 deletions

View File

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