[bricksets] Add brick set scrobble type

This commit is contained in:
2024-09-07 02:02:16 -04:00
parent 14062f3b60
commit 7e961076b4
17 changed files with 312 additions and 3 deletions

View File

@ -0,0 +1,25 @@
# Generated by Django 4.2.15 on 2024-09-07 05:38
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
("bricksets", "0001_initial"),
("scrobbles", "0059_remove_scrobble_book_koreader_hash_and_more"),
]
operations = [
migrations.AddField(
model_name="scrobble",
name="brickset",
field=models.ForeignKey(
blank=True,
null=True,
on_delete=django.db.models.deletion.DO_NOTHING,
to="bricksets.brickset",
),
),
]

View File

@ -0,0 +1,35 @@
# Generated by Django 4.2.15 on 2024-09-07 05:54
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("scrobbles", "0060_scrobble_brickset"),
]
operations = [
migrations.AlterField(
model_name="scrobble",
name="media_type",
field=models.CharField(
choices=[
("Video", "Video"),
("Track", "Track"),
("PodcastEpisode", "Podcast episode"),
("SportEvent", "Sport event"),
("Book", "Book"),
("VideoGame", "Video game"),
("BoardGame", "Board game"),
("GeoLocation", "GeoLocation"),
("WebPage", "Web Page"),
("LifeEvent", "Life event"),
("Mood", "Mood"),
("BrickSet", "Brick set"),
],
default="Video",
max_length=14,
),
),
]