[foods] Add Food scrobbling

This commit is contained in:
2024-11-20 14:16:44 -05:00
parent d294f2ecd1
commit fd38046113
14 changed files with 533 additions and 4 deletions

View File

@ -0,0 +1,51 @@
# Generated by Django 4.2.16 on 2024-11-20 19:15
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
("foods", "__first__"),
("scrobbles", "0066_scrobble_beer_alter_scrobble_media_type"),
]
operations = [
migrations.AddField(
model_name="scrobble",
name="food",
field=models.ForeignKey(
blank=True,
null=True,
on_delete=django.db.models.deletion.DO_NOTHING,
to="foods.food",
),
),
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"),
("Trail", "Trail"),
("Beer", "Beer"),
("Food", "Food"),
("Task", "Task"),
("WebPage", "Web Page"),
("LifeEvent", "Life event"),
("Mood", "Mood"),
("BrickSet", "Brick set"),
],
default="Video",
max_length=14,
),
),
]