From 153b7057f7ba490660f7363d47fdfcd1b0a985d2 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 18 Dec 2018 16:37:25 +0100 Subject: Shortcut: add document for operation --- archaeological_operations/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py index de40657ab..adcadccd7 100644 --- a/archaeological_operations/models.py +++ b/archaeological_operations/models.py @@ -1069,9 +1069,9 @@ class Operation(ClosedItem, BaseHistorizedItem, OwnPerms, ValueGetter, For sheet template """ # url, base_text, icon, extra_text, extra css class, is a quick action + actions = super(Operation, self).get_extra_actions(request) can_add_cr = self.can_do(request, 'add_contextrecord') - actions = [] if can_add_cr: actions += [ (reverse('operation-qa-contextrecord', args=[self.pk]), -- cgit v1.2.3