From 9a3aa1efcdb99a84b5839121125863ac4363feb8 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 22 Aug 2018 17:40:17 +0200 Subject: Document: fix path for ea, treatment file, site documents --- archaeological_finds/models_treatments.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'archaeological_finds/models_treatments.py') diff --git a/archaeological_finds/models_treatments.py b/archaeological_finds/models_treatments.py index 5506afae0..291a75d4c 100644 --- a/archaeological_finds/models_treatments.py +++ b/archaeological_finds/models_treatments.py @@ -666,6 +666,9 @@ class TreatmentFile(DashboardFormItem, ClosedItem, BaseHistorizedItem, getattr(self, k)] return settings.JOINT.join(items) + def _get_base_image_path(self,): + return u"{}/{}/{}".format(self.SLUG, self.year, self.index) + def pre_save(self): # is not new if self.pk is not None: -- cgit v1.2.3