Fixes #3588: Enforce object-form JSON for local context data on devices and VMs

This commit is contained in:
Jeremy Stretch
2019-10-10 10:41:08 -04:00
parent 0e6a804279
commit e705f4c3e4
4 changed files with 19 additions and 1 deletions

View File

@@ -255,6 +255,8 @@ class VirtualMachine(ChangeLoggedModel, ConfigContextModel, CustomFieldModel):
def clean(self):
super().clean()
# Validate primary IP addresses
interfaces = self.interfaces.all()
for field in ['primary_ip4', 'primary_ip6']: