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

Remove legacy CSV-based DeviceType import

This commit is contained in:
Jeremy Stretch
2019-09-24 16:03:05 -04:00
parent 15b2a7eab0
commit 2621f17cde
3 changed files with 0 additions and 33 deletions

View File

@@ -829,31 +829,6 @@ class DeviceTypeForm(BootstrapMixin, CustomFieldForm):
}
class DeviceTypeCSVForm(forms.ModelForm):
manufacturer = forms.ModelChoiceField(
queryset=Manufacturer.objects.all(),
required=True,
to_field_name='name',
help_text='Manufacturer name',
error_messages={
'invalid_choice': 'Manufacturer not found.',
}
)
subdevice_role = CSVChoiceField(
choices=SUBDEVICE_ROLE_CHOICES,
required=False,
help_text='Parent/child status'
)
class Meta:
model = DeviceType
fields = DeviceType.csv_headers
help_texts = {
'model': 'Model name',
'slug': 'URL-friendly slug',
}
class ComponentTemplateImportForm(BootstrapMixin, forms.ModelForm):
def clean_device_type(self):