fixed error when saving a new config-value
This commit is contained in:
parent
fb63d64d02
commit
159e799a22
@ -64,7 +64,7 @@ class Config(object):
|
|||||||
|
|
||||||
def __setitem__(self, key, value):
|
def __setitem__(self, key, value):
|
||||||
try:
|
try:
|
||||||
c = self.config.get(pk=key)
|
c = ConfigStore.objects.get(pk=key)
|
||||||
except ConfigStore.DoesNotExist:
|
except ConfigStore.DoesNotExist:
|
||||||
c = ConfigStore(pk=key)
|
c = ConfigStore(pk=key)
|
||||||
c.value = dumps(value)
|
c.value = dumps(value)
|
||||||
|
Loading…
Reference in New Issue
Block a user