[Django]-Using Django RelatedField for custom join queries?

1👍

The docs say you can do this to filter by specific translated field:

MyObject.objects.filter(
    translations__language_code__in=get_active_language_choices(),
    translations__slug='omelette'
)

This should fulfill your need to query against the translated “slug” field value in a specific language.

Leave a comment