From: Guillaume Pellerin Date: Sat, 9 May 2026 16:25:24 +0000 (+0200) Subject: fix no media file X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=cb6c3a3c26a75a33d8c3a30c503c18dd6a895923;p=teleforma.git fix no media file --- diff --git a/lib/pdfannotator b/lib/pdfannotator index 70e1f183..1f161760 160000 --- a/lib/pdfannotator +++ b/lib/pdfannotator @@ -1 +1 @@ -Subproject commit 70e1f1833f63cb9105659b431357be580cdfc659 +Subproject commit 1f161760779798d79a9c0c073f15044c2bcc6e46 diff --git a/teleforma/models/core.py b/teleforma/models/core.py index 387bd3b9..b6c21e8f 100644 --- a/teleforma/models/core.py +++ b/teleforma/models/core.py @@ -1100,8 +1100,10 @@ class Media(MediaBase): def get_file(self): if self.file_s3: return self.file_s3 - else: + elif self.file: return self.file + else: + return class Meta(MetaCore): db_table = app_label + '_' + 'media'