Commit 11aefa47 authored by ibuler's avatar ibuler

[Bugfix] 修复common设置问题

parent abc56016
...@@ -18,6 +18,9 @@ class BaseForm(forms.Form): ...@@ -18,6 +18,9 @@ class BaseForm(forms.Form):
db_value = getattr(common_settings, name) db_value = getattr(common_settings, name)
django_value = getattr(settings, name) if hasattr(settings, name) else None django_value = getattr(settings, name) if hasattr(settings, name) else None
if db_value is None and django_value is None:
continue
if db_value is False or db_value: if db_value is False or db_value:
if isinstance(db_value, dict): if isinstance(db_value, dict):
db_value = json.dumps(db_value) db_value = json.dumps(db_value)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment