Browse Source

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

pull/5437/head
xinwen 4 years ago committed by 老广
parent
commit
156be0a64e
  1. 1
      apps/assets/models/domain.py

1
apps/assets/models/domain.py

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

Loading…
Cancel
Save