Ticket #2427: 3453.json_2.diff

File 3453.json_2.diff, 631 bytes (added by mtsuyuki@…, 18 years ago)

replace 3453.json.diff with 3453.json_2.diff. I wrote a fool code..

  • django/core/serializers/json.py

     
    1616    Convert a queryset to JSON.
    1717    """
    1818    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)
    2021       
    2122    def getvalue(self):
    2223        return self.stream.getvalue()
Back to Top