feat: 中文化 django-admin 分组与表名 (T-602 层1-3)

- 5 个 app 加 AppConfig.verbose_name(中文分组名)
- 11 个模型加 Meta.verbose_name/verbose_name_plural(中文表名)
- 3 条 AlterModelOptions 迁移(仅 options,无 DB schema 变更)
- LANGUAGE_CODE=zh-hans / USE_I18N=True 已在,Django 自带 admin 与 auth 已中文
- 仅显示层,不改字段名/逻辑/表结构

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
QiuSW
2026-07-04 15:18:16 +08:00
co-authored by Claude Opus 4.8
parent 521b1434b6
commit 4aceb3ae25
11 changed files with 110 additions and 0 deletions
+6
View File
@@ -34,6 +34,8 @@ class User(AbstractUser):
class Meta:
db_table = "user"
verbose_name = "用户"
verbose_name_plural = "用户"
class UserWallet(models.Model):
@@ -48,6 +50,8 @@ class UserWallet(models.Model):
class Meta:
db_table = "user_wallet"
verbose_name = "用户钱包"
verbose_name_plural = "用户钱包"
ordering = ("user_id",)
constraints = [
models.CheckConstraint(
@@ -86,6 +90,8 @@ class ApiKey(models.Model):
class Meta:
db_table = "api_key"
verbose_name = "API 密钥"
verbose_name_plural = "API 密钥"
ordering = ("-created_at", "-id")
indexes = [
models.Index(fields=("user", "status")),