Robocop wrote:

> And all i'm trying to do is sort "Service_details" by Encounter.day,
> and the line i'm trying to do it with is:
> 
> Service_details.objects.filter(encounter__day=date)
> 
> where date is of the form 'YYYY-MM-DD,'  but i always receive the
> error "TypeError: Related Field has invalid lookup: day."

What about passing date.day instead of date to encounter__day like this:

  Service_details.objects.filter(encounter__day=date.day)

?


-- 
Regards,
Wojtek Walczak,
http://tosh.pl/gminick/

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