feat: The correct way to get/post chapters in django

This commit is contained in:
Yiannis Christodoulou
2025-09-19 12:05:46 +03:00
parent b96134bd9f
commit 0456051a11
3 changed files with 19 additions and 8 deletions
+3 -1
View File
@@ -604,7 +604,9 @@ def handle_video_chapters(media, chapters):
else:
video_chapter = models.VideoChapterData.objects.create(media=media, data=chapters)
return media.chapter_data
return {
'chapters': media.chapter_data,
}
def change_media_owner(media_id, new_user):