i had three tables,
trademarks, publication, and entry
trademarks has a foreign key to publication, and publication has a
foreign key to entry, and entry has a field called published_date,
which i am intrested in..
how should i go about such using filters or similar..
when i am writing something like this...
tm_queryset =
Trademarks.objects.all().filter(created_by__id__exact=76).....

i have tried this.. but guess its too off the mark..
t   =
Trademark.objects.all().filter(created_by__id__exact=curr_id).select_related('pub_date','publication_id').filter(pub_date__range=(start_date,end_date),
status__exact=status_code, publication_id__exact=pubid)

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to