diff options
Diffstat (limited to 'archaeological_operations/models.py')
-rw-r--r-- | archaeological_operations/models.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py index 2335155ed..b76e4841e 100644 --- a/archaeological_operations/models.py +++ b/archaeological_operations/models.py @@ -326,6 +326,12 @@ class ArchaeologicalSite(BaseHistorizedItem, OwnPerms, ValueGetter, def short_class_name(self): return _(u"SITE") + @property + def finds(self): + from archaeological_finds.models import Find + return Find.objects.filter( + base_finds__context_record__archaeological_site__pk=self.pk) + @classmethod def get_query_owns(cls, ishtaruser): from archaeological_warehouse.models import Warehouse |