X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/5913c54d19b8f6775633176032161d49f9b2f1aa..30423c0a921a37cc2213e83309d5abe04399ba15:/src/wiki/helpers.py?ds=sidebyside 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')