summaryrefslogtreecommitdiff
path: root/archaeological_operations
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2017-03-30 19:27:00 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2017-03-30 19:27:00 +0200
commitb1b03d624a8c501bc15a21e90e7abde2fd28698f (patch)
tree9b9a2f7ce9dcf78a581ba41e55010afdacc264c2 /archaeological_operations
parentd988e53b80d883f86e705e1c1425e894ee4dd52f (diff)
downloadIshtar-b1b03d624a8c501bc15a21e90e7abde2fd28698f.tar.bz2
Ishtar-b1b03d624a8c501bc15a21e90e7abde2fd28698f.zip
Access control: define get_query_own for persons
Diffstat (limited to 'archaeological_operations')
-rw-r--r--archaeological_operations/models.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py
index d18181722..bef149b2c 100644
--- a/archaeological_operations/models.py
+++ b/archaeological_operations/models.py
@@ -270,7 +270,9 @@ class Operation(ClosedItem, BaseHistorizedItem, ImageModel, OwnPerms,
on_delete=models.SET_NULL,
related_name='operation_responsability')
collaborators = models.ManyToManyField(
- Person, blank=True, null=True, verbose_name=_(u"Collaborators"))
+ Person, blank=True, null=True, verbose_name=_(u"Collaborators"),
+ related_name='operation_collaborator'
+ )
year = models.IntegerField(_(u"Year"), null=True, blank=True)
operation_code = models.IntegerField(_(u"Numeric reference"), null=True,
blank=True)