summaryrefslogtreecommitdiff
path: root/archaeological_finds/models_treatments.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2023-02-23 18:09:15 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2023-02-23 18:11:08 +0100
commit3f05d499e479b72486e33ff0b48ae4febf91dac3 (patch)
treeade5f9523698ad0ec5bcf988834f73df8d140dc3 /archaeological_finds/models_treatments.py
parentfd62721d39b7976488ae7cdb60d7c8a2527d1508 (diff)
downloadIshtar-3f05d499e479b72486e33ff0b48ae4febf91dac3.tar.bz2
Ishtar-3f05d499e479b72486e33ff0b48ae4febf91dac3.zip
Admin: overload index to add sub-section headers
Diffstat (limited to 'archaeological_finds/models_treatments.py')
-rw-r--r--archaeological_finds/models_treatments.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/archaeological_finds/models_treatments.py b/archaeological_finds/models_treatments.py
index 88f267a9b..2ee23c1c6 100644
--- a/archaeological_finds/models_treatments.py
+++ b/archaeological_finds/models_treatments.py
@@ -71,6 +71,7 @@ class TreatmentState(GeneralType):
"order",
"label",
)
+ ADMIN_SECTION = _("Treatments")
@classmethod
def get_default(cls):
@@ -298,6 +299,7 @@ class Treatment(
indexes = [
GinIndex(fields=["data"]),
]
+ ADMIN_SECTION = _("Treatments")
def __str__(self):
return self.cached_label or ""
@@ -1000,6 +1002,7 @@ class TreatmentFileType(GeneralType):
verbose_name = _("Treatment request type")
verbose_name_plural = _("Treatment request types")
ordering = ("label",)
+ ADMIN_SECTION = _("Treatments")
post_save.connect(post_save_cache, sender=TreatmentFileType)
@@ -1187,6 +1190,7 @@ class TreatmentFile(
indexes = [
GinIndex(fields=["data"]),
]
+ ADMIN_SECTION = _("Treatments")
def __str__(self):
return self.cached_label or ""