From e1696d3f5ff48ef6c8c6dbf1e76ad88c33c4e860 Mon Sep 17 00:00:00 2001 From: Etzelia Date: Tue, 1 Oct 2019 23:08:49 +0200 Subject: [PATCH] Fix IP API (#42) --- api/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/views.py b/api/views.py index ac73209..04d55b7 100644 --- a/api/views.py +++ b/api/views.py @@ -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