summaryrefslogtreecommitdiff
path: root/archaeological_operations/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2016-10-17 19:24:28 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2016-10-17 19:24:28 +0200
commit64bb69c03ce1688c72b3f7ebd0e1550cd941aa69 (patch)
tree904d5a6c1c12572d5a81ed7831deabfb3cc08828 /archaeological_operations/models.py
parentf102f5855c878f35a529aa6e1947e7516a1a67fa (diff)
parent461e0320a8426fe82c4f6a7fd9cfa376c767fbdd (diff)
downloadIshtar-64bb69c03ce1688c72b3f7ebd0e1550cd941aa69.tar.bz2
Ishtar-64bb69c03ce1688c72b3f7ebd0e1550cd941aa69.zip
Merge branch 'master' into v0.9
Diffstat (limited to 'archaeological_operations/models.py')
-rw-r--r--archaeological_operations/models.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py
index 4dd107da8..d64936c90 100644
--- a/archaeological_operations/models.py
+++ b/archaeological_operations/models.py
@@ -404,6 +404,11 @@ 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(