29 lines
904 B
Python
29 lines
904 B
Python
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
dependencies = [
|
|
("scouting", "0004_remove_playerseason_uniq_player_season_and_more"),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name="FavoritePlayer",
|
|
fields=[
|
|
("id", models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name="ID")),
|
|
("created_at", models.DateTimeField(auto_now_add=True)),
|
|
(
|
|
"player",
|
|
models.OneToOneField(
|
|
on_delete=models.CASCADE,
|
|
related_name="favorite_entry",
|
|
to="scouting.player",
|
|
),
|
|
),
|
|
],
|
|
options={
|
|
"ordering": ["-created_at", "player__full_name"],
|
|
},
|
|
),
|
|
]
|