Hi there, I'm trying to write (another) app for model translation. It's necessary to somehow filter language=get_language (or whatever) implicitly. The thing is, I need to specify this filter for every translated table in join.
First idea which crossed my mind is subclass django.db.models.sql.query.Query and add desired filters in get_compiler, then subclass django.db.models.query.Queryset's __init__ (to use new Query class) and finally create custom Manager. Questions are: 1. What if non-translated model had relation to translated one. Would it consider customized queryset? 2. Is there better way to create this 'implicit where clause' ? -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com. To unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.