diff options
| author | Cefin <kevon@tuta.io> | 2021-11-09 12:37:30 +0100 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2021-11-22 00:03:21 +0100 |
| commit | 0d992b62662d28637a61a0b114eb85cd6e694dbc (patch) | |
| tree | 7159258b95df3a9399d685134da453939c0bda7d /archaeological_context_records | |
| parent | da3d81cfdf55d69aef32b84e5c57ce4b0729c66c (diff) | |
| download | Ishtar-0d992b62662d28637a61a0b114eb85cd6e694dbc.tar.bz2 Ishtar-0d992b62662d28637a61a0b114eb85cd6e694dbc.zip | |
rapid action context record show add a find #5184 part one
Diffstat (limited to 'archaeological_context_records')
| -rw-r--r-- | archaeological_context_records/models.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/archaeological_context_records/models.py b/archaeological_context_records/models.py index 71adcb219..4bc1ccb5e 100644 --- a/archaeological_context_records/models.py +++ b/archaeological_context_records/models.py @@ -997,6 +997,18 @@ class ContextRecord( True, ), ] + can_create_find = self.can_do(request, "add_find") + if can_create_find: + actions += [ + ( + reverse("find_create", args=[self.pk]), + _("Add find"), + "fa fa-plus", + _("find"), + "", + True, + ), + ] return actions @classmethod |
