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

Added templates for IPAM objects; cleaned up admin

This commit is contained in:
Jeremy Stretch
2016-08-15 16:58:25 -04:00
parent 6cdb62b67e
commit c60c4ad0df
8 changed files with 119 additions and 3 deletions

View File

@ -43,7 +43,7 @@ class CustomFieldForm(forms.ModelForm):
field = forms.CharField(max_length=100, required=cf.required, initial=cf.default)
field.model = cf
field.label = cf.label if cf.label else cf.name
field.label = cf.label if cf.label else cf.name.capitalize()
field.help_text = cf.description
self.fields[field_name] = field
self.custom_fields.append(field_name)