1
0
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:
jeremystretch
2022-01-05 21:21:23 -05:00
parent 85c06372ff
commit 7aa1fabbd7
2 changed files with 8 additions and 1 deletions

View File

@@ -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):