#8416: Using Sqlite as database backend causes list_filter and date_hierarchy
misbehave in Admin pages
--------------------------------------+-------------------------------------
          Reporter:  amiroff          |         Owner:  nobody
            Status:  new              |     Milestone:  1.0   
         Component:  django-admin.py  |       Version:  SVN   
        Resolution:                   |      Keywords:        
             Stage:  Unreviewed       |     Has_patch:  0     
        Needs_docs:  0                |   Needs_tests:  0     
Needs_better_patch:  0                |  
--------------------------------------+-------------------------------------
Changes (by haakeyar):

  * needs_better_patch:  => 0
  * needs_tests:  => 0
  * needs_docs:  => 0

Comment:

 I did some research on this yesterday. Apparently it has to do with the
 fact that the admin interface sends all parameters to the orm as unicode
 strings. For example {{{field_name__month=u'8'}}}.

 According to django.db.connection.queries, passing  the parameter as a
 (unicode) string sends the same query to the db as when you pass the
 parameter as an integer, so maybe the problem has to do with what is done
 to the response afterwards.

 I am completely new to the django codebase, so I didn't manage to locate
 the problem - for some reason, it worked each time I tried to use a step-
 by-step debugger (which usually could indicate a race condition, but that
 sounds a little strange in this case). I don't have access to the computer
 I used yesterday or django at the moment, but I will give more detailed
 information when I do, unless anyone has found the source of the problem
 by then.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/8416#comment:1>
Django Code <http://code.djangoproject.com/>
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to