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:
Joakim Hellsén 2026-04-11 01:12:08 +02:00
commit 43077cde0c
Signed by: Joakim Hellsén
SSH key fingerprint: SHA256:/9h/CsExpFp+PRhsfA0xznFx2CGfTT5R/kpuFfUgEQk
5 changed files with 443 additions and 54 deletions

View file

@ -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",
),
),
]