fix: 网域列表添加默认 name 排序

This commit is contained in:
xinwen 2021-01-17 12:44:12 +08:00 committed by 老广
parent a7fa2331bd
commit 156be0a64e

View File

@ -26,6 +26,7 @@ class Domain(OrgModelMixin):
class Meta:
verbose_name = _("Domain")
unique_together = [('org_id', 'name')]
ordering = ('name',)
def __str__(self):
return self.name