Fix IP API (#42)

reminder^2
Etzelia 2019-10-01 23:08:49 +02:00 committed by Gitea
parent 6cb25c0b4f
commit e1696d3f5f
1 changed files with 1 additions and 1 deletions

View File

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