Files
offline-db/users/migrations/0024_seed_genre_savant_badge.py
google-labs-jules[bot] 54906c7bd5 feat(users): implemented Genre Savant badge (#122)
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
2026-01-22 17:26:25 +00:00

25 lines
641 B
Python

# Generated by Django 5.1.6 on 2026-01-22 17:21
from django.db import migrations
def seed_genre_savant_badge(apps, schema_editor):
Badge = apps.get_model('users', 'Badge')
Badge.objects.get_or_create(
slug='genre-savant',
defaults={
'name': 'Genre Savant',
'description': 'Watched 50 episodes of a single genre.',
'icon_url': '/static/badges/genre_savant.png'
}
)
class Migration(migrations.Migration):
dependencies = [
("users", "0023_seed_content_creator_badge"),
]
operations = [
migrations.RunPython(seed_genre_savant_badge),
]