Am 22.08.2008 um 23:15 schrieb Garrett Garcia:
> How about:
>
> songs = Recording.objects.filter(song__title__startswith='R',  
> represents_song=True)
>
> http://www.djangoproject.com/documentation/db-api/#filter-kwargs
>
> "Multiple parameters are joined via AND in the underlying SQL  
> statement."
>
> - Garrett

Hm, never thought about that. Thanks!

But still: It feels somehow like a workaround. I want to have songs in  
my query set, not recordings.
songs = Recording looks confusing to me. Songs are songs, and  
recordings are recordings.

And I still would have to acess the song via the recording in the  
template:
{{ recording.song.title }}

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