Ticket #1301: query.py.diff

File query.py.diff, 669 bytes (added by Esaj, 19 years ago)

Fixes the bug

  • django/db/models/query.py

     
    429429        # objects -- MySQL returns the values as strings, instead.
    430430        return [typecast_timestamp(str(row[0])) for row in cursor.fetchall()]
    431431
     432    def _clone(self, klass=None, **kwargs):
     433        c = super(DateQuerySet, self)._clone(klass, **kwargs)
     434        c._field = self._field
     435        c._kind = self._kind
     436        c._order = self._order
     437        return c
     438
    432439class QOperator:
    433440    "Base class for QAnd and QOr"
    434441    def __init__(self, *args):
Back to Top