Whoops...though I hate responding to my own post, I got things 
backwards somehow (swapping details and headers).  Your Details 
have the header attribute so you want

    since = datetime.date(2007,6,1)
    details = Details.objects.filter(
      code='123',
      author='dave',
      header__creation_date__gte=since
      )
    for detail in details:
      do_something(detail)


-tim




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