]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/settings/base.py
Improving the canned comments feature, now we can use Django style template syntax...
[osqa.git] / forum / settings / base.py
index 7436f46593b4e2813f292b91662ed21323a15a9b..0e085e56933e1a245b87a669bbd2b7773c650ae0 100644 (file)
@@ -1,5 +1,5 @@
 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
 
@@ -42,7 +42,7 @@ class BaseSetting(object):
         return str(self.value)
 
     def __unicode__(self):
-        return unicode(self.value)
+        return smart_unicode(self.value)
 
     @property
     def value(self):