If you change this:

media=models.ForeignKey(Media)

to this:
media=models.ForeignKey(Media, related_name = 'media_translations')

in your MediaTranslations model, then you can filter your Media queryset by 
referring to its media_translations.

Example:

media.objects.filter(media_translations__language = 'English')  #note the 
double underscore

Shawn

--

You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@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