Refactor badge list view to use badge_data and optimize badge fetching; add tests for badge list and detail views
This commit is contained in:
parent
b7e10e766e
commit
43077cde0c
5 changed files with 443 additions and 54 deletions
|
|
@ -0,0 +1,22 @@
|
|||
# Generated by Django 6.0.4 on 2026-04-10 23:02
|
||||
|
||||
from django.db import migrations
|
||||
from django.db import models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
"""Add an index on DropBenefit for distribution_type and name."""
|
||||
|
||||
dependencies = [
|
||||
("twitch", "0016_mark_all_drops_fully_imported"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddIndex(
|
||||
model_name="dropbenefit",
|
||||
index=models.Index(
|
||||
fields=["distribution_type", "name"],
|
||||
name="twitch_drop_distrib_70d961_idx",
|
||||
),
|
||||
),
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue