diff options
Diffstat (limited to 'archaeological_finds/models_treatments.py')
| -rw-r--r-- | archaeological_finds/models_treatments.py | 3 |
1 files changed, 3 insertions, 0 deletions
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: |
