Ticket #3466: core.serializers.json.2.diff
File core.serializers.json.2.diff, 676 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, **self.options) 19 opts = self.options.copy() 20 opts.pop('stream', None) 21 opts.pop('fields', None) 22 simplejson.dump(self.objects, self.stream, cls=DateTimeAwareJSONEncoder, **opts) 20 23 21 24 def getvalue(self): 22 25 return self.stream.getvalue()