mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Documentation and cleanup
This commit is contained in:
@@ -98,7 +98,7 @@ class CustomField(models.Model):
|
||||
ordering = ['name']
|
||||
|
||||
def __unicode__(self):
|
||||
return self.label or self.name.capitalize()
|
||||
return self.label or self.name.replace('_', ' ').capitalize()
|
||||
|
||||
def serialize_value(self, value):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user