diff options
Diffstat (limited to 'archaeological_operations/models.py')
-rw-r--r-- | archaeological_operations/models.py | 7 |
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 |