]> git.parisson.com Git - teleforma.git/commitdiff
fix no media file
authorGuillaume Pellerin <guillaume.pellerin@parisson.com>
Sat, 9 May 2026 16:25:24 +0000 (18:25 +0200)
committerGuillaume Pellerin <guillaume.pellerin@parisson.com>
Sat, 9 May 2026 16:25:24 +0000 (18:25 +0200)
lib/pdfannotator
teleforma/models/core.py

index 70e1f1833f63cb9105659b431357be580cdfc659..1f161760779798d79a9c0c073f15044c2bcc6e46 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 70e1f1833f63cb9105659b431357be580cdfc659
+Subproject commit 1f161760779798d79a9c0c073f15044c2bcc6e46
index 387bd3b9d800bc8ebe5f4f8db48a9287a81f9dc9..b6c21e8f000fddc43a6137ed479dbc5de3b18621 100644 (file)
@@ -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'