From 4c7deadb9aa2c32db3afc1df7b09faaa6c3a279c Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Wed, 23 Mar 2022 22:55:43 +0000 Subject: documenting fossils --- core/admin.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'core/admin.py') diff --git a/core/admin.py b/core/admin.py index c11d866..7bc78e5 100644 --- a/core/admin.py +++ b/core/admin.py @@ -20,12 +20,14 @@ What is the search path for the css and js inclusions in the Media subclasses t class TroggleModelAdmin(admin.ModelAdmin): def save_model(self, request, obj, form, change): - """overriding admin save to fill the new_since parsing_field""" + """overriding admin save to fill the new_since parsing_field + + new_since_parsing is not currently used in troggle. It is a fossil.""" obj.new_since_parsing=True obj.save() class Media: - js = ('jquery/jquery.min.js','js/QM_helper.js') + js = ('jquery/jquery.min.js','js/QM_helper.js') # not currently available to troggle, see media/js/README class RoleInline(admin.TabularInline): @@ -37,11 +39,6 @@ class SurvexBlockAdmin(TroggleModelAdmin): inlines = (RoleInline,) -# class SurveyAdmin(TroggleModelAdmin): - # #inlines = (ScannedImageInline,) - # search_fields = ('expedition__year','wallet_number') - - class QMsFoundInline(admin.TabularInline): model=QM fk_name='found_by' -- cgit v1.2.3