feat(models): add Chinese verbose_name to all 74 models (Phase 4.0)
为所有 Django 模型添加 Meta.verbose_name 和 verbose_name_plural(中文表名), 覆盖 10 个 app 的全部 74 个业务模型。 Phase 4.0 范围: - 仅 Meta 类级别中文名(用于 Django Admin、drf-spectacular OpenAPI title、错误信息) - 字段级 verbose_name= 和 help_text= 留待 Phase 4.1(待 PM 补全 DATA_MODEL 后同步) 变更: - 20 个 models 文件改动(每个模型 +2 行) - 8 个 0002/0003 迁移文件(Meta options 变更) - apps/tenant/migrations/0001_initial.py(之前漏生成的 tenant 模型迁移) manage.py check: 0 issues。
This commit is contained in:
@@ -44,6 +44,8 @@ class FollowLog(models.Model):
|
||||
|
||||
class Meta:
|
||||
db_table = "follow_logs"
|
||||
verbose_name = "房源跟进日志"
|
||||
verbose_name_plural = "房源跟进日志"
|
||||
managed = False
|
||||
unique_together = (("id", "created_at"),)
|
||||
|
||||
@@ -61,6 +63,8 @@ class FollowLogAttachment(UUIDPrimaryKeyModel):
|
||||
|
||||
class Meta:
|
||||
db_table = "follow_log_attachments"
|
||||
verbose_name = "跟进附件"
|
||||
verbose_name_plural = "跟进附件"
|
||||
indexes = [models.Index(fields=["follow_log_id"], name="idx_fla_log")]
|
||||
|
||||
|
||||
@@ -72,6 +76,8 @@ class FollowLogRecording(UUIDPrimaryKeyModel):
|
||||
|
||||
class Meta:
|
||||
db_table = "follow_log_recordings"
|
||||
verbose_name = "跟进录音"
|
||||
verbose_name_plural = "跟进录音"
|
||||
indexes = [models.Index(fields=["follow_log_id"], name="idx_flr_log")]
|
||||
|
||||
|
||||
@@ -114,6 +120,8 @@ class PropertyKey(UUIDPrimaryKeyModel):
|
||||
|
||||
class Meta:
|
||||
db_table = "property_keys"
|
||||
verbose_name = "房源钥匙"
|
||||
verbose_name_plural = "房源钥匙"
|
||||
indexes = [models.Index(fields=["property"], name="idx_pk_property")]
|
||||
|
||||
|
||||
@@ -127,4 +135,6 @@ class KeyAttachment(UUIDPrimaryKeyModel):
|
||||
|
||||
class Meta:
|
||||
db_table = "key_attachments"
|
||||
verbose_name = "钥匙附件"
|
||||
verbose_name_plural = "钥匙附件"
|
||||
indexes = [models.Index(fields=["key"], name="idx_ka_key")]
|
||||
|
||||
Reference in New Issue
Block a user