From 5c110f503d9dc6ef956b1f12d2220be9cd528fb1 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 4 Jan 2019 16:20:11 +0100 Subject: Sheet: only display window link when permissions are OK --- archaeological_warehouse/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'archaeological_warehouse/models.py') diff --git a/archaeological_warehouse/models.py b/archaeological_warehouse/models.py index 3b157ee0c..3e2b87551 100644 --- a/archaeological_warehouse/models.py +++ b/archaeological_warehouse/models.py @@ -321,6 +321,8 @@ post_delete.connect(post_save_cache, sender=ContainerType) class Container(LightHistorizedItem, ImageModel, OwnPerms): + SLUG = 'container' + SHOW_URL = 'show-container' TABLE_COLS = ['reference', 'container_type__label', 'cached_location', 'cached_division', 'old_reference'] IMAGE_PREFIX = 'containers/' @@ -344,7 +346,6 @@ class Container(LightHistorizedItem, ImageModel, OwnPerms): 'finds': 'finds', 'container_type__label': 'container_type__label', } - SHOW_URL = 'show-container' COL_LABELS = { 'cached_location': _(u"Location - index"), 'cached_division': _(u"Precise localisation"), -- cgit v1.2.3