fixed error when saving a new config-value

This commit is contained in:
Oskar Hahn 2012-02-20 14:51:05 +01:00
parent fb63d64d02
commit 159e799a22
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ class Config(object):
def __setitem__(self, key, value):
try:
c = self.config.get(pk=key)
c = ConfigStore.objects.get(pk=key)
except ConfigStore.DoesNotExist:
c = ConfigStore(pk=key)
c.value = dumps(value)