#6025: Q object relationship spanning
-----------------------+----------------------------------------------------
Reporter:  yopi        |       Owner:  nobody          
  Status:  new         |   Component:  Database wrapper
 Version:  SVN         |    Keywords:                  
   Stage:  Unreviewed  |   Has_patch:  0               
-----------------------+----------------------------------------------------
 the route 835 is a record of the table payment itself and does not appear
 when searched in the table deal via the FK deal
 {{{
 >>> MtPayment.objects.filter(route=835)
 [<MtPayment: 132>]
 >>> MtPayment.objects.filter(deal__route=835)
 []
 }}}

 But filtering on both criterias using a Q object fails to find anything:

 {{{
 >>> MtPayment.objects.filter(Q(route =835)|Q(deal__route=835))
 []
 }}}

-- 
Ticket URL: <http://code.djangoproject.com/ticket/6025>
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