]> git.parisson.com Git - teleforma.git/commitdiff
re-add org and dpt
authorGuillaume Pellerin <guillaume.pellerin@parisson.com>
Wed, 5 Aug 2026 16:56:11 +0000 (18:56 +0200)
committerGuillaume Pellerin <guillaume.pellerin@parisson.com>
Wed, 5 Aug 2026 16:56:11 +0000 (18:56 +0200)
teleforma/models/core.py

index 43fecb7afb66eed5d16526067340fc7a618511f4..73a1bd9fb524ce7203b34fb6590d5f5cfce05a63 100644 (file)
@@ -1034,6 +1034,8 @@ class MediaTranscoded(models.Model):
 def get_media_path(instance, filename):
     if instance.conference:
         return os.sep.join([
+            instance.conference.organization.name,
+            instance.conference.department.name,
             str(instance.conference.date_begin.year),
             instance.conference.course.slug,
             instance.conference.course_type.slug,