fix: 添加Model的verbose_name属性

This commit is contained in:
Michael Bai
2021-10-26 17:17:10 +08:00
committed by 老广
parent a1e2d4ca57
commit 1eb59b11da
6 changed files with 136 additions and 93 deletions

View File

@@ -40,6 +40,7 @@ class LoginACL(BaseACL):
class Meta:
ordering = ('priority', '-date_updated', 'name')
verbose_name = _('Login acl')
def __str__(self):
return self.name

View File

@@ -37,6 +37,7 @@ class LoginAssetACL(BaseACL, OrgModelMixin):
class Meta:
unique_together = ('name', 'org_id')
ordering = ('priority', '-date_updated', 'name')
verbose_name = _('Login asset acl')
def __str__(self):
return self.name