summaryrefslogtreecommitdiff
path: root/archaeological_operations
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2025-06-17 18:06:46 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2025-06-17 18:06:46 +0200
commitfc0e811f9f5042fe72b91db4548142f5f2d4e1df (patch)
tree30adfd1fabc9b9aec7003b71d723a800606b0dfa /archaeological_operations
parentfb1046c52552461a2d8dd9db5f73747eb3da51e6 (diff)
downloadIshtar-fc0e811f9f5042fe72b91db4548142f5f2d4e1df.tar.bz2
Ishtar-fc0e811f9f5042fe72b91db4548142f5f2d4e1df.zip
✨ Media exporter: export action
Diffstat (limited to 'archaeological_operations')
-rw-r--r--archaeological_operations/models.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py
index 72838e815..cadb806dc 100644
--- a/archaeological_operations/models.py
+++ b/archaeological_operations/models.py
@@ -3302,10 +3302,13 @@ class AdministrativeAct(DocumentItem, BaseHistorizedItem, OwnPerms, ValueGetter,
def get_extra_templates(self, request):
urlname = "generatedoc-administrativeactop"
- return [
- (template.name, reverse(urlname, args=[self.pk, template.pk]))
+ templates = [
+ (template.name, reverse(urlname, args=[self.pk, template.pk]),
+ template.get_icon())
for template in self.act_type.associated_template.all()
]
+ templates += self.get_media_exporters(request)
+ return templates
def get_filename(self):
filename = self.related_item.associated_filename