Ticket #4199: del_stream_and_fields.diff

File del_stream_and_fields.diff, 632 bytes (added by Øyvind Saltvik <oyvind@…>, 12 years ago)

Forgot to del optionsfields?

  • 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        del options["fields"]
     33        self.options = options
     34
    3335        self.start_serialization()
    3436        for obj in queryset:
    3537            self.start_object(obj)
Back to Top