diff options
author | Philip Sargent <philip.sargent@gmail.com> | 2023-03-17 20:01:52 +0000 |
---|---|---|
committer | Philip Sargent <philip.sargent@gmail.com> | 2023-03-17 20:01:52 +0000 |
commit | 7345e3a3286ebf2771a7c7800c83632cc9930fa1 (patch) | |
tree | ff58cd35a20dc382dfa696d2edcf82664fbeba0d /core/admin.py | |
parent | de54576d1131c0f2020dca082499f837ad6c672e (diff) | |
download | troggle-7345e3a3286ebf2771a7c7800c83632cc9930fa1.tar.gz troggle-7345e3a3286ebf2771a7c7800c83632cc9930fa1.tar.bz2 troggle-7345e3a3286ebf2771a7c7800c83632cc9930fa1.zip |
Much QM re-engineering
Diffstat (limited to 'core/admin.py')
-rw-r--r-- | core/admin.py | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/core/admin.py b/core/admin.py index bfbd727..b7c0d2b 100644 --- a/core/admin.py +++ b/core/admin.py @@ -47,11 +47,11 @@ class SurvexBlockAdmin(TroggleModelAdmin): inlines = (RoleInline,) -class QMsFoundInline(admin.TabularInline): - model = QM - fk_name = "found_by" - fields = ("number", "grade", "location_description", "comment") # need to add foreignkey to cave part - extra = 1 +# class QMsFoundInline(admin.TabularInline): + # model = QM + # fk_name = "found_by" + # fields = ("number", "grade", "location_description", "comment") # need to add foreignkey to cave part + # extra = 1 class PersonLogEntryInline(admin.TabularInline): @@ -64,7 +64,7 @@ class LogbookEntryAdmin(TroggleModelAdmin): prepopulated_fields = {"slug": ("title",)} search_fields = ("title", "expedition__year") date_heirarchy = "date" - inlines = (PersonLogEntryInline, QMsFoundInline) + # inlines = (PersonLogEntryInline, QMsFoundInline) class Media: css = {"all": ("css/troggleadmin.css",)} # this does not exist @@ -91,12 +91,12 @@ class PersonAdmin(TroggleModelAdmin): class QMAdmin(TroggleModelAdmin): - search_fields = ("found_by__cave__kataster_number", "number", "found_by__date") - list_display = ("__str__", "grade", "found_by", "ticked_off_by") + search_fields = ("number", "expoyear") + list_display = ("__str__", "grade") list_display_links = ("__str__",) - list_editable = ("found_by", "ticked_off_by", "grade") - list_per_page = 20 - raw_id_fields = ("found_by", "ticked_off_by") + # list_editable = ("comment", "page_ref", "grade") + # list_per_page = 20 + # raw_id_fields = ("found_by", "ticked_off_by") class PersonExpeditionAdmin(TroggleModelAdmin): |