Add genres!
This commit is contained in:
@ -0,0 +1,28 @@
|
||||
# Generated by Django 4.1.5 on 2023-03-14 19:35
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
(
|
||||
"videos",
|
||||
"0009_rename_overview_series_plot_remove_series_tagline_and_more",
|
||||
),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RenameField(
|
||||
model_name="series",
|
||||
old_name="genres",
|
||||
new_name="tags",
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name="video",
|
||||
name="cover_image",
|
||||
field=models.ImageField(
|
||||
blank=True, null=True, upload_to="videos/video/"
|
||||
),
|
||||
),
|
||||
]
|
||||
25
vrobbler/apps/videos/migrations/0011_video_tags.py
Normal file
25
vrobbler/apps/videos/migrations/0011_video_tags.py
Normal file
@ -0,0 +1,25 @@
|
||||
# Generated by Django 4.1.5 on 2023-03-14 19:42
|
||||
|
||||
from django.db import migrations
|
||||
import taggit.managers
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("taggit", "0004_alter_taggeditem_content_type_alter_taggeditem_tag"),
|
||||
("videos", "0010_rename_genres_series_tags_alter_video_cover_image"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name="video",
|
||||
name="tags",
|
||||
field=taggit.managers.TaggableManager(
|
||||
help_text="A comma-separated list of tags.",
|
||||
through="taggit.TaggedItem",
|
||||
to="taggit.Tag",
|
||||
verbose_name="Tags",
|
||||
),
|
||||
),
|
||||
]
|
||||
@ -0,0 +1,43 @@
|
||||
# Generated by Django 4.1.5 on 2023-03-14 22:27
|
||||
|
||||
from django.db import migrations
|
||||
import taggit.managers
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("scrobbles", "0033_genre_objectwithgenres"),
|
||||
("videos", "0011_video_tags"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name="series",
|
||||
name="tags",
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name="video",
|
||||
name="tags",
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name="series",
|
||||
name="genre",
|
||||
field=taggit.managers.TaggableManager(
|
||||
help_text="A comma-separated list of tags.",
|
||||
through="scrobbles.ObjectWithGenres",
|
||||
to="scrobbles.Genre",
|
||||
verbose_name="Tags",
|
||||
),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name="video",
|
||||
name="genre",
|
||||
field=taggit.managers.TaggableManager(
|
||||
help_text="A comma-separated list of tags.",
|
||||
through="scrobbles.ObjectWithGenres",
|
||||
to="scrobbles.Genre",
|
||||
verbose_name="Tags",
|
||||
),
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user