#2471: [patch] date_based generic view doesn't work with DateField and sqlite
------------------------------+---------------------------------------------
 Reporter:  Steven Armstrong  |        Owner:  jacob
     Type:  defect            |       Status:  new  
 Priority:  normal            |    Milestone:       
Component:  Generic views     |      Version:  SVN  
 Severity:  major             |   Resolution:       
 Keywords:                    |  
------------------------------+---------------------------------------------
Comment (by Steven Armstrong):

 In MySQL and friends a DateField is represented as '2006-08-07 00:00:00'
 while in sqlite it's just '2006-08-07'.
 
 The patch changes the archive_day view
 (django/views/generic/date_based.py) to test if it's dealing with a
 DateField or a DateTimeField and build the sql lookup args depending on
 that.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/2471>
Django <http://code.djangoproject.org/>
The web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates
-~----------~----~----~----~------~----~------~--~---

Reply via email to