2011/3/9 Łukasz Rekucki <lreku...@gmail.com>: > It's probably messy in general case, but maybe we can try emulating > this in this particular case. Using an ordinary DISTINCT in a subquery > seems to solve the issue: > > base_query = > self.rel.to._default_manager.using(db).complex_filter(self.rel.limit_choices_to).values('id').distinct() > queryset = self.rel.to._default_manager.using(db).filter(pk=base_query)
Yes, that looks like it should work. I expect it's probably less efficient, but we may just have to live with that. -- 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.