Ticket #1297: query.py.diff

File query.py.diff, 634 bytes (added by Esaj, 19 years ago)
  • usr/lib/python2.3/site-packages/django/db/models/query.py

     
    245245    def filter(self, **kwargs):
    246246        "Returns a new QuerySet instance with the args ANDed to the existing set."
    247247        clone = self._clone()
    248         clone._filters.update(**kwargs)
     248        for k, v in kwargs.items(): clone._filters[k] = v
    249249        return clone
    250250
    251251    def select_related(self, true_or_false=True):
Back to Top