Changed DeviceForm.device_type label

This commit is contained in:
Jeremy Stretch 2016-07-07 22:30:51 -04:00
parent b9e0739f72
commit db72a64ef7

View File

@ -340,7 +340,7 @@ class DeviceForm(forms.ModelForm, BootstrapMixin):
disabled_indicator='device'))
manufacturer = forms.ModelChoiceField(queryset=Manufacturer.objects.all(),
widget=forms.Select(attrs={'filter-for': 'device_type'}))
device_type = forms.ModelChoiceField(queryset=DeviceType.objects.all(), label='Model', widget=APISelect(
device_type = forms.ModelChoiceField(queryset=DeviceType.objects.all(), label='Device type', widget=APISelect(
api_url='/api/dcim/device-types/?manufacturer_id={{manufacturer}}',
display_field='model'
))