diff options
author | Cefin <kevon@tuta.io> | 2022-02-11 13:22:04 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-12-12 12:21:00 +0100 |
commit | aa1a1960bb0ae2d83545aa8462c9467f54e7e48a (patch) | |
tree | 307cd55f5f62696ba3b0e333ad8e22d39b948df2 /archaeological_files/models.py | |
parent | 3f109fef94090b8c0bd9ec5e4a04a02d9752bd1b (diff) | |
download | Ishtar-aa1a1960bb0ae2d83545aa8462c9467f54e7e48a.tar.bz2 Ishtar-aa1a1960bb0ae2d83545aa8462c9467f54e7e48a.zip |
File - Parcels - Modify: add get method for modifying parcels #5227
Diffstat (limited to 'archaeological_files/models.py')
-rw-r--r-- | archaeological_files/models.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/archaeological_files/models.py b/archaeological_files/models.py index cdc996d95..f737472a1 100644 --- a/archaeological_files/models.py +++ b/archaeological_files/models.py @@ -1221,6 +1221,17 @@ class File( def get_extra_actions(self, request): # url, base_text, icon, extra_text, extra css class, is a quick action actions = super(File, self).get_extra_actions(request) + if self.can_do(request, "change_operation"): + actions += [ + ( + reverse("file-parcels-modify", args=[self.pk]), + _("Modify parcels"), + "fa fa-pencil", + _("parcels"), + "", + True, + ), + ] if self.can_do(request, "add_administrativeact"): actions += [ ( |