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 | ac8b62cb2243621b14ae80b03f5bcd1eb6317c29 (patch) | |
| tree | 307cd55f5f62696ba3b0e333ad8e22d39b948df2 /archaeological_files/models.py | |
| parent | ce87116f5232a1ad2c6073926088a1aa5c49012b (diff) | |
| download | Ishtar-ac8b62cb2243621b14ae80b03f5bcd1eb6317c29.tar.bz2 Ishtar-ac8b62cb2243621b14ae80b03f5bcd1eb6317c29.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 += [ ( |
