#15164: Filtering queryset via ForeignKey to legacy model with OneToOneField as
primary doesn't evaluate primary key
---------------------------------------------------+------------------------
          Reporter:  GDorn                         |         Owner:  nobody
            Status:  closed                        |     Milestone:        
         Component:  Database layer (models, ORM)  |       Version:  1.2   
        Resolution:  worksforme                    |      Keywords:        
             Stage:  Unreviewed                    |     Has_patch:  0     
        Needs_docs:  0                             |   Needs_tests:  0     
Needs_better_patch:  0                             |  
---------------------------------------------------+------------------------
Changes (by carljm):

  * status:  new => closed
  * needs_better_patch:  => 0
  * resolution:  => worksforme
  * needs_tests:  => 0
  * needs_docs:  => 0

Comment:

 Using the provided models and queries, I can't replicate this problem in
 either trunk or 1.2, on SQLite, MySQL, or Postgres. The first query (by
 my_user) generates the correct SQL for me in every case.

 Thanks for the report. Please reopen if you can demonstrate the problem as
 a patch against Django's own test suite with a failing test case, or in a
 brand-new simplest-case project running on Django trunk.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/15164#comment:1>
Django <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 django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to