Ticket #4199: del_stream.diff
File del_stream.diff, 601 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 self.options = options 33 33 34 self.start_serialization() 34 35 for obj in queryset: 35 36 self.start_object(obj)