mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-15 19:52:52 -06:00
PEP8 fix
This commit is contained in:
parent
8fbe7ba742
commit
a35f8bddde
@ -668,8 +668,8 @@ class BaseDeviceFromCSVForm(forms.ModelForm):
|
|||||||
)
|
)
|
||||||
model_name = forms.CharField()
|
model_name = forms.CharField()
|
||||||
platform = forms.ModelChoiceField(
|
platform = forms.ModelChoiceField(
|
||||||
queryset=Platform.objects.all(), required=False, to_field_name='name'
|
queryset=Platform.objects.all(), required=False, to_field_name='name',
|
||||||
, error_messages={'invalid_choice': 'Invalid platform.'}
|
error_messages={'invalid_choice': 'Invalid platform.'}
|
||||||
)
|
)
|
||||||
status_name = forms.ChoiceField(choices=[(s[1], s[0]) for s in STATUS_CHOICES])
|
status_name = forms.ChoiceField(choices=[(s[1], s[0]) for s in STATUS_CHOICES])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user