-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #857 from openedx/iahmad/ENT-9101
feat: Updated video catalog models and utils
- Loading branch information
Showing
17 changed files
with
241 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
.../video_catalog/migrations/0003_videoshortlist_historicalvideo_video_usage_key_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Generated by Django 4.2.13 on 2024-06-26 10:19 | ||
|
||
from django.db import migrations, models | ||
import django.utils.timezone | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('video_catalog', '0002_alter_video_parent_content_metadata'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='VideoShortlist', | ||
fields=[ | ||
('video_usage_key', models.CharField(help_text='Video Xblock Usage Key', max_length=255, primary_key=True, serialize=False)), | ||
], | ||
options={ | ||
'verbose_name': 'Shortlisted Video', | ||
'verbose_name_plural': 'Shortlisted Videos', | ||
}, | ||
), | ||
migrations.AddField( | ||
model_name='historicalvideo', | ||
name='video_usage_key', | ||
field=models.CharField(default=django.utils.timezone.now, help_text='Video Xblock Usage Key', max_length=255), | ||
preserve_default=False, | ||
), | ||
migrations.AddField( | ||
model_name='video', | ||
name='video_usage_key', | ||
field=models.CharField(default=django.utils.timezone.now, help_text='Video Xblock Usage Key', max_length=255), | ||
preserve_default=False, | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,6 +56,7 @@ | |
'waffle', | ||
'release_util', | ||
'rules.apps.AutodiscoverRulesConfig', | ||
'import_export', | ||
) | ||
|
||
PROJECT_APPS = ( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.