Re: Custom Join Conditions

2017-09-05 Thread Nicolas Delaby
It seems we have a consensus. I'll be glad to push that change. I just have a question, from where do you want users importing the class FilteredRelation ? >From its current location ? from django.db.models.query import FilteredRelation or from its parent module ? from django.db.models imp

Request for feedback for QuerySet.filtered_relation() inclusion in 1.11

2017-01-03 Thread Nicolas Delaby
Hi, We'd like to receive some feedback on the pull request https://github.com/django/django/pull/7560 that address the ticket https://code.djangoproject.com/ticket/27332. This pull request allows to pass custom filtering within the "ON" SQL clauses. This functionality might improve performance of