mirror of
https://github.com/mediacms-io/mediacms.git
synced 2025-10-06 22:32:41 +07:00
feat: The correct way to get/post chapters in django
This commit is contained in:
+3
-1
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user