Ticket #6050: 6050.patch

File 6050.patch, 610 bytes (added by Collin Grady <cgrady@…>, 17 years ago)
  • django/utils/datastructures.py

     
    6060        if isinstance(data, dict):
    6161            self.keyOrder = data.keys()
    6262        else:
    63             self.keyOrder = [key for key, value in data]
     63            self.keyOrder = []
     64            for key, value in data:
     65                if key not in self.keyOrder:
     66                    self.keyOrder.append(key)
    6467
    6568    def __deepcopy__(self, memo):
    6669        from copy import deepcopy
Back to Top