From fc0e811f9f5042fe72b91db4548142f5f2d4e1df Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 17 Jun 2025 18:06:46 +0200 Subject: ✨ Media exporter: export action MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- archaeological_operations/models.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'archaeological_operations/models.py') 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 -- cgit v1.2.3