Ticket #2427: 3453.json_2.diff
File 3453.json_2.diff, 631 bytes (added by , 18 years ago) |
---|
-
django/core/serializers/json.py
16 16 Convert a queryset to JSON. 17 17 """ 18 18 def end_serialization(self): 19 simplejson.dump(self.objects, self.stream, cls=DateTimeAwareJSONEncoder) 19 e_ascii_flag = self.options.get('ensure_ascii',True) 20 simplejson.dump(self.objects, self.stream, cls=DateTimeAwareJSONEncoder, ensure_ascii=e_ascii_flag) 20 21 21 22 def getvalue(self): 22 23 return self.stream.getvalue()