X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/5913c54d19b8f6775633176032161d49f9b2f1aa..f16104e5ce08700745c66caf77c2e6403243059c:/src/wiki/helpers.py diff --git a/src/wiki/helpers.py b/src/wiki/helpers.py index 877a9d0e..d62c5459 100644 --- a/src/wiki/helpers.py +++ b/src/wiki/helpers.py @@ -10,7 +10,7 @@ class ExtendedEncoder(json.JSONEncoder): def default(self, obj): if isinstance(obj, Promise): - return unicode(obj) + return str(obj) if isinstance(obj, datetime): return datetime.ctime(obj) + " " + (datetime.tzname(obj) or 'GMT')