summaryrefslogtreecommitdiff
path: root/archaeological_files/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2021-08-02 17:19:16 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2021-08-02 17:24:05 +0200
commita4d00559bd8dad2605aaf7e38da873663e3bff0e (patch)
tree134b06750346dfe806fc73eb564104e70f0608d0 /archaeological_files/models.py
parent8cc2fa3f7df67daa316621e645ea0988732c5730 (diff)
downloadIshtar-a4d00559bd8dad2605aaf7e38da873663e3bff0e.tar.bz2
Ishtar-a4d00559bd8dad2605aaf7e38da873663e3bff0e.zip
Preventive file: copy planned, add default cost - tests - fixtures
Diffstat (limited to 'archaeological_files/models.py')
-rw-r--r--archaeological_files/models.py6
1 files changed, 6 insertions, 0 deletions
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: