-
Notifications
You must be signed in to change notification settings - Fork 699
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 #12944 from jredrejo/annotate_ordered_channels
Annotate channels with some ordered metadata
- Loading branch information
Showing
8 changed files
with
287 additions
and
11 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
35 changes: 35 additions & 0 deletions
35
kolibri/core/content/migrations/0039_channelmetadata_ordered_fields.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,35 @@ | ||
# Generated by Django 3.2.25 on 2024-12-13 17:17 | ||
import sortedm2m.fields | ||
import sortedm2m.operations | ||
from django.db import migrations | ||
from django.db import models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("content", "0038_alter_localfile_extension"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="channelmetadata", | ||
name="included_categories", | ||
field=models.TextField(blank=True, null=True), | ||
), | ||
migrations.AddField( | ||
model_name="channelmetadata", | ||
name="included_grade_levels", | ||
field=models.TextField(blank=True, null=True), | ||
), | ||
sortedm2m.operations.AlterSortedManyToManyField( | ||
model_name="channelmetadata", | ||
name="included_languages", | ||
field=sortedm2m.fields.SortedManyToManyField( | ||
blank=True, | ||
related_name="channels", | ||
to="content.Language", | ||
verbose_name="languages", | ||
), | ||
), | ||
] |
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.