django__django-12589
Django 3.0: "GROUP BY" clauses error with tricky field annotation
Verdict: the fix is stated in the issue (Tier A).
What needs to be adjust is sql.Query.set_group_by to set alias=None if alias is not None and alias in {... set of all column names of tables in alias_map ...} before calling annotation.get_group_by_cols
The text states the fix: “What needs to be adjust is sql.Query.set_group_by to set alias=None if alias is not None and alias in {... set of all column names of tables in alias_map ...} before cal…”
All SWE-bench Lite tasks · more django/django tasks · How the check works