fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixes
[redakcja.git]
/
src
/
wiki
/
helpers.py
diff --git
a/src/wiki/helpers.py
b/src/wiki/helpers.py
index
877a9d0
..
d62c545
100644
(file)
--- 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):
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')
if isinstance(obj, datetime):
return datetime.ctime(obj) + " " + (datetime.tzname(obj) or 'GMT')