Ticket #2515: json.diff

File json.diff, 600 bytes (added by nesh <nesh [at] studioquattro [dot] co [dot] yu>, 18 years ago)

small fix

  • store/django/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        simplejson.dump(self.objects, self.stream, cls=DateTimeAwareJSONEncoder, **self.options)
    2020       
    2121    def getvalue(self):
    2222        return self.stream.getvalue()
Back to Top