On 7/16/07, jj <[EMAIL PROTECTED]> wrote:
>
> Now I'd like to restrict the query to books which have been printed in
> 'Holland':
>     q = q.filter(foreign_print_set__country='Holland')

Try:

     q = q.filter(foreignprint__country='Holland')

foreignprint doesn't get an underscore unless it is defined that way;
the _set suffix is not used when composing queries.

Yours,
Russ Magee %-)

--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to