Fix IP API (#42)
parent
6cb25c0b4f
commit
e1696d3f5f
|
@ -46,7 +46,7 @@ def clean(model, data):
|
|||
attr = d
|
||||
if '__' in d:
|
||||
attr = d.split('__')[0]
|
||||
if hasattr(model, attr):
|
||||
if hasattr(model, attr) and attr != "api":
|
||||
cleaned[d] = data[d]
|
||||
return cleaned
|
||||
|
||||
|
|
Loading…
Reference in New Issue