1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Corrected CustomField ordering

This commit is contained in:
Jeremy Stretch
2016-08-23 12:25:23 -04:00
parent 4a2e80aeee
commit 25c46894b4
2 changed files with 3 additions and 3 deletions

View File

@@ -97,7 +97,7 @@ class CustomField(models.Model):
"form")
class Meta:
ordering = ['name']
ordering = ['weight', 'name']
def __unicode__(self):
return self.label or self.name.replace('_', ' ').capitalize()