Another thing i can't resolve is construct contraints based in another model other than the query original one.
With 0.96 i just passed the Options object - "q_filter.get_sql (other_model._meta)". Now I've tried: class QJoin(object): ... def add_to_query(self, query, used_aliases): query.start_meta = self.model._meta for child in self.where.children: query.add_filter(child) query.start_meta = None But without success, the filters always apply to query.model._meta. I've in the last days reading and analyzing the "model.sql" code but probably i'm missing something. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---