diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2026-04-06 21:08:48 +0200 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2026-04-07 19:25:04 +0200 |
| commit | 6575fb494d82727e0d34287d5d2fb579fb7acd64 (patch) | |
| tree | bc582180cf4534e9c48b5a35e4f47442b0b77685 /archaeological_finds/models_finds.py | |
| parent | 24086b977c19258ed7491c0dbc37ff8d3659d9eb (diff) | |
| download | Ishtar-6575fb494d82727e0d34287d5d2fb579fb7acd64.tar.bz2 Ishtar-6575fb494d82727e0d34287d5d2fb579fb7acd64.zip | |
✨ finds - relations between finds: forms, view
Diffstat (limited to 'archaeological_finds/models_finds.py')
| -rw-r--r-- | archaeological_finds/models_finds.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/archaeological_finds/models_finds.py b/archaeological_finds/models_finds.py index 64bae6769..400ec7e2c 100644 --- a/archaeological_finds/models_finds.py +++ b/archaeological_finds/models_finds.py @@ -2925,7 +2925,7 @@ class Find( # no particular rights: if you can view an item you can add it to your # own basket - actions = super(Find, self).get_extra_actions(request) + actions = super().get_extra_actions(request) is_locked = hasattr(self, "is_locked") and self.is_locked(request.user) profile = get_current_profile() @@ -2933,6 +2933,14 @@ class Find( if can_edit_find and not is_locked: actions += [ ( + reverse("find-relations-modify", args=[self.pk]), + _("Modify finds relations"), + "fa fa-retweet", + _("finds"), + "", + True, + ), + ( reverse("find-dating-add", args=[self.pk]), _("Add dating"), "fa fa-plus", |
