From cd19678576fd28662f5685d4c52552b96a82e251 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Sun, 16 Oct 2016 23:29:41 +0200 Subject: List and export context record relations (refs #3329) --- archaeological_operations/models.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'archaeological_operations/models.py') diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py index 4dd107da8..60a7359db 100644 --- a/archaeological_operations/models.py +++ b/archaeological_operations/models.py @@ -404,6 +404,10 @@ class Operation(ClosedItem, BaseHistorizedItem, ImageModel, OwnPerms, def render_parcels(self): return Parcel.render_parcels(list(self.parcels.all())) + def context_record_relations_q(self): + from archaeological_context_records.models import RecordRelations as CRRL + return CRRL.objects.filter(left_record__operation=self) + def context_record_docs_q(self): from archaeological_context_records.models import ContextRecordSource return ContextRecordSource.objects.filter( -- cgit v1.2.3