On Mon, 2006-04-03 at 16:15 -0500, James Bennett wrote:
> On 4/3/06, Douglas Campos <[EMAIL PROTECTED]> wrote:
> > My environment
> > Django 0.91
> > DB: sqlite3
> 
> I'd bet money that this is the problem: IIRC there are some problems
> with doing date-based queries on SQLite in 0.91. Can you try with
> MySQL or Postgres and see if you run into the same problem?

Yeah, this is SQLite specific. I think you are hitting the bug that was
reported in ticket #1460. It is fixed on the magic-removal branch, but
not on the trunk.

It is possible to apply the patch in that ticket to trunk by downloading
it and then doing

        cd django/core/meta
        patch -p4 fields.py < ~/datefield-lookup.diff
        
that is on a Unix-like system; if you are on Windows, you could edit the
appropriate places in the file yourself. The first chunk goes in the
DateField class, the second in the DateTimeField class.

Regards,
Malcolm


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to