mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Fix tests
This commit is contained in:
@@ -251,7 +251,7 @@ class CustomField(ChangeLoggedModel):
|
||||
if self.type == CustomFieldTypeChoices.TYPE_OBJECT:
|
||||
return value.pk
|
||||
if self.type == CustomFieldTypeChoices.TYPE_MULTIOBJECT:
|
||||
return [obj.pk for obj in value]
|
||||
return [obj.pk for obj in value] or None
|
||||
return value
|
||||
|
||||
def deserialize(self, value):
|
||||
|
||||
Reference in New Issue
Block a user