From 348d094439665ea6bd2417fad140d4b5646e8c4d Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Wed, 5 Aug 2026 13:53:17 +0200 Subject: [PATCH] add department and org --- teleforma/models/core.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/teleforma/models/core.py b/teleforma/models/core.py index 3f999480..20321042 100644 --- a/teleforma/models/core.py +++ b/teleforma/models/core.py @@ -1033,8 +1033,10 @@ class MediaTranscoded(models.Model): def get_media_path(instance, filename): if instance.conference: return os.sep.join([ + instance.conference.department.organization.name, + instance.conference.department.name, str(instance.conference.date_begin.year), - instance.conference.course.slug, + instance.conference.course.code, instance.conference.course_type.slug, instance.conference.public_id, filename -- 2.47.3