Update seed data to include new cards, and modify hex codes for existing decks to be more different. Also add functionality to set a dark font color for card_badges if the bg color is too light
This commit is contained in:
parent
2cb35e853d
commit
15f8eb7cf4
6 changed files with 12779 additions and 8112 deletions
|
|
@ -1,4 +1,4 @@
|
|||
# Generated by Django 5.1.2 on 2025-03-22 04:08
|
||||
# Generated by Django 5.1.2 on 2025-03-28 04:43
|
||||
|
||||
import django.db.models.deletion
|
||||
from django.db import migrations, models
|
||||
|
|
@ -16,11 +16,11 @@ class Migration(migrations.Migration):
|
|||
name='Card',
|
||||
fields=[
|
||||
('id', models.AutoField(primary_key=True, serialize=False)),
|
||||
('name', models.CharField(max_length=128)),
|
||||
('cardset', models.CharField(max_length=8)),
|
||||
('name', models.CharField(max_length=64)),
|
||||
('cardset', models.CharField(max_length=32)),
|
||||
('cardnum', models.IntegerField()),
|
||||
('style', models.CharField(max_length=255)),
|
||||
('rarity_icon', models.CharField(max_length=8)),
|
||||
('style', models.CharField(max_length=128)),
|
||||
('rarity_icon', models.CharField(max_length=12)),
|
||||
('rarity_level', models.IntegerField()),
|
||||
('created_at', models.DateTimeField(auto_now_add=True)),
|
||||
('updated_at', models.DateTimeField(auto_now=True)),
|
||||
|
|
@ -64,4 +64,8 @@ class Migration(migrations.Migration):
|
|||
('deck', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='name_translations', to='cards.deck')),
|
||||
],
|
||||
),
|
||||
migrations.AlterUniqueTogether(
|
||||
name='card',
|
||||
unique_together={('cardset', 'cardnum')},
|
||||
),
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue