On Wed, Jun 14, 2006 at 10:51:02AM -0700, Rick wrote:
> 
> I'm having a similar (but not identical) problem.
> 
> In my app I have Rate's that belong to a Rateset, and Card's that use a
> Rateset. So both Rate and Card have a foreign key connection to
> Rateset.
> 
> My application needs a list of "active" rates (those rates that are in
> use by an active Card).  Here is my query:
> 
> Rate.objects.filter(rateset__card__active_exact=True).distinct().values('countryfrom')
                                           ^ should be __ surely?


Cheers,
-- 
Brett Parker

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to