summaryrefslogtreecommitdiff
path: root/archaeological_finds/models_finds.py
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_finds/models_finds.py')
-rw-r--r--archaeological_finds/models_finds.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/archaeological_finds/models_finds.py b/archaeological_finds/models_finds.py
index 13b6ddfce..088fc14b7 100644
--- a/archaeological_finds/models_finds.py
+++ b/archaeological_finds/models_finds.py
@@ -821,6 +821,15 @@ class Find(BulkUpdatedItem, ValueGetter, BaseHistorizedItem, ImageModel,
return u" ; ".join([unicode(dating) for dating in self.datings.all()])
@property
+ def excavation_ids(self):
+ return u" - ".join(
+ [base_find['excavation_id']
+ for base_find in self.base_finds.values(
+ 'excavation_id').order_by('pk').all()
+ if base_find['excavation_id']])
+
+
+ @property
def materials(self):
return u" ; ".join([unicode(material)
for material in self.material_types.all()])