From 05cdc188147b394e630c65a0b2f02308e82095c1 Mon Sep 17 00:00:00 2001 From: bakatrouble Date: Fri, 25 Jan 2019 19:39:17 +0300 Subject: [PATCH] fix vk auth config --- feeds/utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/feeds/utils.py b/feeds/utils.py index 857148b..f1ec84a 100644 --- a/feeds/utils.py +++ b/feeds/utils.py @@ -55,4 +55,6 @@ class DatabaseConfig(BaseConfig): return settings def save(self): - FeedsAppConfigForm(data={'vk_auth': yaml.dump(self._settings)}).save() + form = FeedsAppConfigForm(data={'vk_auth': yaml.dump(self._settings)}) + form.is_valid() + form.save()