Ticket #4199: del_stream_and_fields.diff
File del_stream_and_fields.diff, 632 bytes (added by , 18 years ago) |
---|
-
django/core/serializers/base.py
25 25 """ 26 26 Serialize a queryset. 27 27 """ 28 self.options = options29 30 28 self.stream = options.get("stream", StringIO()) 31 29 self.selected_fields = options.get("fields") 32 30 31 del options["stream"] 32 del options["fields"] 33 self.options = options 34 33 35 self.start_serialization() 34 36 for obj in queryset: 35 37 self.start_object(obj)