mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-29 11:56:25 -06:00
TEMP PATCH: Fixed in upstream v2.6.10 - drop when syncing
This commit is contained in:
parent
df61fe8b6c
commit
4f64d38fce
@ -124,6 +124,9 @@ class CustomFieldModelSerializer(ValidatedModelSerializer):
|
||||
|
||||
else:
|
||||
|
||||
if not hasattr(self, 'initial_data'):
|
||||
self.initial_data = {}
|
||||
|
||||
# Populate default values
|
||||
if fields and 'custom_fields' not in self.initial_data:
|
||||
self.initial_data['custom_fields'] = {}
|
||||
|
Loading…
Reference in New Issue
Block a user