[books] Add papers as a data model

This commit is contained in:
2025-02-20 23:07:56 -05:00
parent e2b0decd83
commit 9e3f714c61
11 changed files with 944 additions and 548 deletions

View File

@ -0,0 +1,52 @@
# Generated by Django 4.2.19 on 2025-02-18 05:27
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
("books", "0025_remove_author_amazon_id_and_more"),
("scrobbles", "0067_scrobble_food_alter_scrobble_media_type"),
]
operations = [
migrations.AddField(
model_name="scrobble",
name="paper",
field=models.ForeignKey(
blank=True,
null=True,
on_delete=django.db.models.deletion.DO_NOTHING,
to="books.paper",
),
),
migrations.AlterField(
model_name="scrobble",
name="media_type",
field=models.CharField(
choices=[
("Video", "Video"),
("Track", "Track"),
("PodcastEpisode", "Podcast episode"),
("SportEvent", "Sport event"),
("Book", "Book"),
("Paper", "Paper"),
("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,
),
),
]