1
0
mirror of https://github.com/django/django.git synced 2024-12-24 10:05:46 +00:00
django/docs
Simon Charette cf95de9d24 [4.2.x] Fixed #34987 -- Fixed queryset crash when mixing aggregate and window annotations.
Regression in f387d024fc.

Just like `OrderByList` the `ExpressionList` expression used to wrap
`Window.partition_by` must implement `get_group_by_cols` to ensure the
necessary grouping when mixing window expressions with aggregate
annotations is performed against the partition members and not the
partition expression itself.

This is necessary because while `partition_by` is implemented as
a source expression of `Window` it's actually a fragment of the WINDOW
expression at the SQL level and thus it should result in a group by its
members and not the sum of them.

Thanks ElRoberto538 for the report.
Backport of e76cc93b01 from main
2023-11-23 06:10:24 +01:00
..
_ext [4.2.x] Fixed #34756 -- Fixed docs HTML build on Sphinx 7.1+. 2023-08-03 09:32:03 +02:00
_theme
faq [4.2.x] Refs #34118 -- Doc'd Python 3.12 compatibility in Django 4.2.x. 2023-11-19 16:38:33 +01:00
howto [4.2.x] Removed obsolete sentence in custom model field docs. 2023-11-15 13:53:03 +01:00
internals [4.2.x] Corrected note about using accents in writing documentation contributing guide. 2023-10-21 09:40:21 +02:00
intro [4.2.x] Refs #34118 -- Doc'd Python 3.12 compatibility in Django 4.2.x. 2023-11-19 16:38:33 +01:00
man [4.2.x] Updated man page for Django 4.2 final. 2023-04-03 08:56:48 +02:00
misc
ref [4.2.x] Fixed #34990 -- Changed link to OWASP in CSRF docs. 2023-11-23 05:28:43 +01:00
releases [4.2.x] Fixed #34987 -- Fixed queryset crash when mixing aggregate and window annotations. 2023-11-23 06:10:24 +01:00
topics [4.2.x] Fixed #34970 -- Clarified Password Validation docs regarding the password_changed callback. 2023-11-15 21:51:32 -03:00
conf.py [4.2.x] Used extlinks for PyPI links. 2023-04-17 07:44:29 +02:00
contents.txt
glossary.txt
index.txt [4.2.x] Added Django Forum to mailing lists page. 2023-03-24 08:58:45 +01:00
make.bat
Makefile
README.rst
requirements.txt
spelling_wordlist [4.2.x] Fixed #33405, Refs #7177 -- Clarified docs for filter escapejs regarding safe and unsafe usages. 2023-07-03 13:55:31 +02:00

The documentation in this tree is in plain text files and can be viewed using
any text file viewer.

It uses `ReST`_ (reStructuredText), and the `Sphinx`_ documentation system.
This allows it to be built into other forms for easier viewing and browsing.

To create an HTML version of the docs:

* Install Sphinx (using ``python -m pip install Sphinx`` or some other method).

* In this docs/ directory, type ``make html`` (or ``make.bat html`` on
  Windows) at a shell prompt.

The documentation in ``_build/html/index.html`` can then be viewed in a web
browser.

.. _ReST: https://docutils.sourceforge.io/rst.html
.. _Sphinx: https://www.sphinx-doc.org/