Re: django.db.models import Q help!

2011-10-21 Thread Kayode Odeyemi
On Fri, Oct 21, 2011 at 7:43 PM, Ian Clelland wrote: > On Fri, Oct 21, 2011 at 11:06 AM, Kayode Odeyemi wrote: > >> Hello, >> >> Please I need help with django.db.models.Q. I have the query below which >> is returning empty >> >> qs = >>

Re: django.db.models import Q help!

2011-10-21 Thread Ian Clelland
On Fri, Oct 21, 2011 at 11:06 AM, Kayode Odeyemi wrote: > Hello, > > Please I need help with django.db.models.Q. I have the query below which is > returning empty > > qs = > Q(financial_institution=request.user.get_profile().financial_institution) > txn =

django.db.models import Q help!

2011-10-21 Thread Kayode Odeyemi
Hello, Please I need help with django.db.models.Q. I have the query below which is returning empty qs = Q(financial_institution=request.user.get_profile().financial_institution) txn = Transaction.objects.extra( where=['(tpin=%s or teller_no=%s or identifier=%s) AND