Skip to content
This repository was archived by the owner on Jan 28, 2022. It is now read-only.

Avoid annotate and Q filter bug

Choose a tag to compare

@Adarnof Adarnof released this 20 Apr 20:27
· 2 commits to master since this release

https://code.djangoproject.com/ticket/18378

This update changes how require_scopes_exact handles filtering: it explicitly selects pk and scopes__id so that the scope_id column ends up in the select statement, which avoids an SQL bug where it doesn't recognize the column in the having clause when used in a Q filter.