diff --git a/core/serializers/json.py b/core/serializers/json.py
index 7b570f3..24ea243 100644
a
|
b
|
from django.core.serializers.python import Serializer as PythonSerializer
|
10 | 10 | from django.core.serializers.python import Deserializer as PythonDeserializer |
11 | 11 | from django.utils import simplejson |
12 | 12 | from django.utils.timezone import is_aware |
| 13 | from django.utils.functional import Promise |
| 14 | from django.utils.encoding import force_unicode |
13 | 15 | |
14 | 16 | class Serializer(PythonSerializer): |
15 | 17 | """ |
… |
… |
class DjangoJSONEncoder(simplejson.JSONEncoder):
|
62 | 64 | return r |
63 | 65 | elif isinstance(o, decimal.Decimal): |
64 | 66 | return str(o) |
| 67 | elif isinstance(o, Promise): |
| 68 | return force_unicode(o) |
65 | 69 | else: |
66 | 70 | return super(DjangoJSONEncoder, self).default(o) |
67 | 71 | |