diff options
Diffstat (limited to 'archaeological_files/models.py')
-rw-r--r-- | archaeological_files/models.py | 10 |
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): |