mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Fixed up validation of Interface VLAN assignments
This commit is contained in:
@ -48,11 +48,6 @@ class ValidatedModelSerializer(ModelSerializer):
|
||||
attrs = data.copy()
|
||||
attrs.pop('custom_fields', None)
|
||||
|
||||
# remove any fields marked for no validation
|
||||
ignore_validation_fields = getattr(self.Meta, 'ignore_validation_fields', [])
|
||||
for field in ignore_validation_fields:
|
||||
attrs.pop(field)
|
||||
|
||||
# Run clean() on an instance of the model
|
||||
if self.instance is None:
|
||||
instance = self.Meta.model(**attrs)
|
||||
|
Reference in New Issue
Block a user