Event.objects.filter(semester__id=1,category__id=2)
(note the two underscores)
On 5/3/06, tsnyder <
[EMAIL PROTECTED]> wrote:
Hi all,
I think I have missed something in the documentation, and I am hoping someone
can help me. What is the django equivalent of doing something like this:
select * from event where semester_id = 1 and category_id = 2
Where the event table is related to two other tables (semester and category).
Thanks, and I'm sorry for asking what is probably a very obvious question.
Tamara
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---