mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-26 17:26:10 -06:00
12074 fix full clean
This commit is contained in:
parent
e467589730
commit
a6070e1aa0
@ -40,4 +40,8 @@ class ValidatedModelSerializer(BaseModelSerializer):
|
||||
setattr(instance, k, v)
|
||||
instance.full_clean()
|
||||
|
||||
# copy any changes to data made in full_clean
|
||||
for k, v in attrs.items():
|
||||
data[k] = getattr(instance, k)
|
||||
|
||||
return data
|
||||
|
Loading…
Reference in New Issue
Block a user