diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-10-24 18:39:04 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-10-24 18:39:04 +0200 |
commit | bc2112bf857f05ae7817b1b7d099f92cf2fc166b (patch) | |
tree | d86041bfc76a10aa137ba48fc5097d1d4e57a543 /archaeological_context_records/models.py | |
parent | bd3cec269e03148efb7afefa80a2ab49d7e652b6 (diff) | |
download | Ishtar-bc2112bf857f05ae7817b1b7d099f92cf2fc166b.tar.bz2 Ishtar-bc2112bf857f05ae7817b1b7d099f92cf2fc166b.zip |
Permissions: add a permission fo record relation view
Diffstat (limited to 'archaeological_context_records/models.py')
-rw-r--r-- | archaeological_context_records/models.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/archaeological_context_records/models.py b/archaeological_context_records/models.py index 9f0117869..082d4f53c 100644 --- a/archaeological_context_records/models.py +++ b/archaeological_context_records/models.py @@ -623,6 +623,9 @@ class RecordRelationView(models.Model): managed = False db_table = 'record_relations' unique_together = ('id', 'right_record') + permissions = [ + ("view_recordrelation", u"Can view all record relations - view"), + ] def __unicode__(self): return u"{} \"{}\"".format(self.relation_type, self.right_record) |