From 06a4b0d7bcf2026a53867cf0822e60983a8b4522 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(-) (limited to 'archaeological_operations/models.py') 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