Browse Source
feat(course): support live session recordings
feat(course): support live session recordings
- add recorded_file FileField to CourseLiveSession with migration - add serializers for recording upload and metadata - add PATCH endpoint to create a recording for latest session: /<int:course_id>/live-sessions/recorded-file/ - enforce can_manage_course permission and return recording metadata - update urls and views; use FileFieldSerializer for file handlingmaster
5 changed files with 98 additions and 2 deletions
-
18apps/course/migrations/0010_courselivesession_recorded_file.py
-
7apps/course/models/live_session.py
-
25apps/course/serializers/online.py
-
1apps/course/urls.py
-
49apps/course/views/live_session.py
@ -0,0 +1,18 @@ |
|||||
|
# Generated by Django 3.2.4 on 2025-10-18 12:53 |
||||
|
|
||||
|
from django.db import migrations, models |
||||
|
|
||||
|
|
||||
|
class Migration(migrations.Migration): |
||||
|
|
||||
|
dependencies = [ |
||||
|
('course', '0009_auto_20251014_0051'), |
||||
|
] |
||||
|
|
||||
|
operations = [ |
||||
|
migrations.AddField( |
||||
|
model_name='courselivesession', |
||||
|
name='recorded_file', |
||||
|
field=models.FileField(blank=True, help_text='Recorded file of the live session.', null=True, upload_to='live_session_recordings/', verbose_name='Recorded File'), |
||||
|
), |
||||
|
] |
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue