summaryrefslogtreecommitdiff
path: root/archaeological_context_records
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2021-11-22 00:32:45 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2022-05-27 08:58:30 +0200
commit24b40d0d22d325ddd9b59f2758089591abb52c7d (patch)
tree402303404d8b6c100c1e2f88af270c23c37d5379 /archaeological_context_records
parentbf51b05bde6737a153de30def94c7003414992d5 (diff)
downloadIshtar-24b40d0d22d325ddd9b59f2758089591abb52c7d.tar.bz2
Ishtar-24b40d0d22d325ddd9b59f2758089591abb52c7d.zip
Quick action context record: change position of +find button - fix form display (refs #5184)
Diffstat (limited to 'archaeological_context_records')
-rw-r--r--archaeological_context_records/models.py24
1 files changed, 12 insertions, 12 deletions
diff --git a/archaeological_context_records/models.py b/archaeological_context_records/models.py
index 14ef1f62b..e1099d119 100644
--- a/archaeological_context_records/models.py
+++ b/archaeological_context_records/models.py
@@ -955,18 +955,6 @@ class ContextRecord(
actions = super(ContextRecord, self).get_extra_actions(request)
# is_locked = hasattr(self, "is_locked") and self.is_locked(request.user)
- can_edit_cr = self.can_do(request, "change_contextrecord")
- if can_edit_cr:
- actions += [
- (
- reverse("contextrecord-qa-duplicate", args=[self.pk]),
- _("Duplicate"),
- "fa fa-clone",
- "",
- "",
- True,
- ),
- ]
can_create_find = self.can_do(request, "add_find")
if can_create_find:
actions += [
@@ -976,6 +964,18 @@ class ContextRecord(
"fa fa-plus",
_("find"),
"",
+ False,
+ ),
+ ]
+ can_edit_cr = self.can_do(request, "change_contextrecord")
+ if can_edit_cr:
+ actions += [
+ (
+ reverse("contextrecord-qa-duplicate", args=[self.pk]),
+ _("Duplicate"),
+ "fa fa-clone",
+ "",
+ "",
True,
),
]