Skip to content

Commit

Permalink
fix: Set default language (#2205)
Browse files Browse the repository at this point in the history
  • Loading branch information
shaohuzhang1 authored Feb 10, 2025
1 parent 9113526 commit a9b2a1c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 21 deletions.
4 changes: 1 addition & 3 deletions apps/users/migrations/0005_user_language.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
# Generated by Django 4.2.15 on 2025-01-20 06:59

from django.db import migrations, models
import users.models.user


class Migration(migrations.Migration):

dependencies = [
('users', '0004_alter_user_email'),
]
Expand All @@ -14,6 +12,6 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='user',
name='language',
field=models.CharField(default=users.models.user.get_language, max_length=10, verbose_name='语言'),
field=models.CharField(default=None, null=True, max_length=10, verbose_name='语言'),
),
]
18 changes: 0 additions & 18 deletions apps/users/migrations/0006_alter_user_language.py

This file was deleted.

0 comments on commit a9b2a1c

Please sign in to comment.