Files
bugsink/users/migrations/0003_user_language.py
Klaas van Schelven ef126814bf Language choices: not in User.model
Having this as a model field is "annoying" because each added language
will trigger a (potentially costly) migration even though no real database
work is actually done for it.

Also implements a selector that shows languages in both their own language
and the currently activated language.

Correct spelling to "zh-hans" (lowercase); see https://stackoverflow.com/a/7729311

See #161
2025-08-28 14:17:25 +02:00

17 lines
352 B
Python

from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("users", "0002_user_theme_preference"),
]
operations = [
migrations.AddField(
model_name="user",
name="language",
field=models.CharField(default="auto", max_length=10),
),
]