From ab48e1850c5a797d55515d0794f6efe8687a01d8 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 2 Aug 2021 17:19:16 +0200 Subject: Preventive file: copy planned, add default cost - tests - fixtures --- archaeological_files/models.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'archaeological_files/models.py') diff --git a/archaeological_files/models.py b/archaeological_files/models.py index 3237f594c..51273a17e 100644 --- a/archaeological_files/models.py +++ b/archaeological_files/models.py @@ -227,6 +227,12 @@ class EquipmentServiceCost(models.Model): lbl += " - " + str(DCT_ES_UNITS[self.unit]) return lbl + def natural_key(self): + return (self.slug,) + + def history_compress(self): + return self.slug + class FileType(GeneralType): class Meta: -- cgit v1.2.3