mirror of
https://github.com/jlengrand/bugsink.git
synced 2026-03-10 08:01:17 +00:00
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
17 lines
352 B
Python
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),
|
|
),
|
|
]
|