On Thu, Aug 25, 2011 at 8:04 AM, john <deont...@gmail.com> wrote:
>
>
> ** tobjs =
> Trademark.objects.filter(created_by__id__exact=76).filter(publication__entry__pub_date__range=('start_date','end_date'))
>

Is this literal? Are you actually passing proper dates to filter, or
the strings 'start_date' and 'end_date'?

If you remove the user restriction, do the Trademark objects that are
returned have publications with the correct entry dates?

Are you positive the database has the correct data in it? Confirm by
manually selecting out the rows that you think should be returned.

Cheers

Tom

-- 
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