import django.dispatch
-from django.utils.encoding import force_unicode
+from django.utils.encoding import force_unicode, smart_unicode
from datetime import datetime, timedelta
import logging
return str(self.value)
def __unicode__(self):
- return unicode(self.value)
+ return smart_unicode(self.value)
@property
def value(self):
except KeyValue.DoesNotExist:
kv = KeyValue(key=self.name)
except Exception, e:
- logging.error("Error savin setting to database (%s): %s" % (self.name, str(e)))
+ logging.error("Error saving setting to database (%s): %s" % (self.name, str(e)))
return
kv.value = value
Setting.emulators[deftype] = emul
return emul(name, default, set, field_context)
-
-