summaryrefslogtreecommitdiff
path: root/archaeological_files
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_files
parentfd62721d39b7976488ae7cdb60d7c8a2527d1508 (diff)
downloadIshtar-3f05d499e479b72486e33ff0b48ae4febf91dac3.tar.bz2
Ishtar-3f05d499e479b72486e33ff0b48ae4febf91dac3.zip
Admin: overload index to add sub-section headers
Diffstat (limited to 'archaeological_files')
-rw-r--r--archaeological_files/models.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/archaeological_files/models.py b/archaeological_files/models.py
index d81433a25..527138425 100644
--- a/archaeological_files/models.py
+++ b/archaeological_files/models.py
@@ -84,6 +84,7 @@ class PriceAgreement(GeneralType):
"end_date",
"label",
)
+ ADMIN_SECTION = _("Preventive")
class Job(GeneralType):
@@ -118,6 +119,7 @@ class Job(GeneralType):
"-permanent_contract",
"label",
)
+ ADMIN_SECTION = _("Preventive")
def __str__(self):
lbl = self.label
@@ -162,6 +164,7 @@ class GenericEquipmentServiceType(GeneralType):
"order",
"label",
)
+ ADMIN_SECTION = _("Preventive")
class EquipmentServiceType(GeneralType):
@@ -177,6 +180,7 @@ class EquipmentServiceType(GeneralType):
"order",
"label",
)
+ ADMIN_SECTION = _("Preventive")
ES_UNITS = (
@@ -246,6 +250,7 @@ class EquipmentServiceCost(models.Model):
"order",
"equipment_service_type__label",
)
+ ADMIN_SECTION = _("Preventive")
def __str__(self):
lbl = ""
@@ -325,6 +330,7 @@ class AgreementType(GeneralType):
verbose_name = _("Agreement type - France")
verbose_name_plural = _("Agreement types - France")
ordering = ("label",)
+ ADMIN_SECTION = _("Preventive")
post_save.connect(post_save_cache, sender=AgreementType)
@@ -344,6 +350,7 @@ class OperationTypeForRoyalties(GeneralType):
verbose_name = _("Operation type for royalties - France")
verbose_name_plural = _("Operation types for royalties - France")
ordering = ("id",)
+ ADMIN_SECTION = _("Preventive")
post_save.connect(post_save_cache, sender=OperationTypeForRoyalties)
@@ -1386,6 +1393,7 @@ class PreventiveFileGroundJob(ManDays):
class Meta:
ordering = ("job",)
+ ADMIN_SECTION = _("Preventive")
@property
def cost_planned(self):
@@ -1402,6 +1410,7 @@ class PreventiveFileJob(ManDays):
class Meta:
ordering = ("job",)
+ ADMIN_SECTION = _("Preventive")
@property
def cost_planned(self):
@@ -1426,6 +1435,7 @@ class PreventiveFileEquipmentServiceCost(models.Model):
class Meta:
ordering = ("equipment_service_cost",)
+ ADMIN_SECTION = _("Preventive")
@property
def quantity_planned(self):