Ticket #4199: del_stream.diff

File del_stream.diff, 601 bytes (added by Øyvind Saltvik <oyvind@…>, 18 years ago)

Fix

  • django/core/serializers/base.py

     
    2525        """
    2626        Serialize a queryset.
    2727        """
    28         self.options = options
    29 
    3028        self.stream = options.get("stream", StringIO())
    3129        self.selected_fields = options.get("fields")
    3230
     31        del options["stream"]
     32        self.options = options
     33
    3334        self.start_serialization()
    3435        for obj in queryset:
    3536            self.start_object(obj)
Back to Top