feat: 中文化 django-admin 字段标签 (T-603)
This commit is contained in:
@@ -51,7 +51,7 @@ class PricingRuleAdmin(admin.ModelAdmin):
|
||||
readonly_fields = ("created_at", "updated_at")
|
||||
list_editable = ("points_cost", "is_active")
|
||||
|
||||
@admin.display(description="resolution")
|
||||
@admin.display(description="分辨率")
|
||||
def resolution_display(self, obj):
|
||||
return obj.resolution or "*"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user