<feed xmlns='http://www.w3.org/2005/Atom'>
<title>django.git/django/db/models/query.py, branch main</title>
<subtitle>django
</subtitle>
<id>http://cgit.adnoto.dev/django.git/atom?h=main</id>
<link rel='self' href='http://cgit.adnoto.dev/django.git/atom?h=main'/>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/'/>
<updated>2026-04-19T19:28:13Z</updated>
<entry>
<title>Refs #28586 -- Added DEFAULT_FETCH_MODE module constant.</title>
<updated>2026-04-19T19:28:13Z</updated>
<author>
<name>Jacob Walls</name>
<email>jacobtylerwalls@gmail.com</email>
</author>
<published>2026-04-19T13:36:42Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=5cf9c7fde7cf18c1ab4d529d187f45fb0225bb58'/>
<id>urn:sha1:5cf9c7fde7cf18c1ab4d529d187f45fb0225bb58</id>
<content type='text'>
This is a more attractive target for alteration than all of QuerySet.__init__().
</content>
</entry>
<entry>
<title>Fixed #37016 -- Avoided propagating invalid arguments from When() to Q().</title>
<updated>2026-04-03T13:37:32Z</updated>
<author>
<name>varunkasyap</name>
<email>varunkasyap@hotmail.com</email>
</author>
<published>2026-04-02T09:26:45Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=3b161e60964aff99eddcd2627a486d81c1836b3a'/>
<id>urn:sha1:3b161e60964aff99eddcd2627a486d81c1836b3a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Refs #28455 -- Avoided QuerySet cloning in simple prefetch_related() usages.</title>
<updated>2026-03-11T17:05:44Z</updated>
<author>
<name>Keryn Knight</name>
<email>keryn@kerynknight.com</email>
</author>
<published>2026-01-10T07:39:45Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=804607df0e174c524a3ea880b8ecbb555ecb4abb'/>
<id>urn:sha1:804607df0e174c524a3ea880b8ecbb555ecb4abb</id>
<content type='text'>
manager.get_queryset() always returns freshly instantiated per-instance
QuerySet which doesn't need subsequent cloning.

Based on work originally done by Anssi Kääriäinen and Tim Graham.
</content>
</entry>
<entry>
<title>Refs #28455 -- Implemented private API methods for preventing QuerySet cloning.</title>
<updated>2026-03-11T17:05:44Z</updated>
<author>
<name>Keryn Knight</name>
<email>keryn@kerynknight.com</email>
</author>
<published>2021-07-20T12:04:51Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=8d8a8713432a88737c4400610eef11c5c8457b86'/>
<id>urn:sha1:8d8a8713432a88737c4400610eef11c5c8457b86</id>
<content type='text'>
Multiple calls are idempotent assuming they're balanced. Also, multiple
calls to disable cloning followed by a single call to re-enable cloning
will subsequently cause clones to occur - it is not a stack, just a
toggle.

@contextlib.contextmanager is intentionally not used for performance
reasons:
- decorator takes 1.1µs to execute, or 2µs if used correctly in a
  `with ...:` statement
- custom class takes 300ns to execute, or 900ns if used correctly in a
  `with ...:` statement

Based on work originally done by Anssi Kääriäinen and Tim Graham.
</content>
</entry>
<entry>
<title>Fixed #36857 -- Added QuerySet.totally_ordered property.</title>
<updated>2026-02-13T21:58:36Z</updated>
<author>
<name>VIZZARD-X</name>
<email>vigneshanandmay13@gmail.com</email>
</author>
<published>2026-01-09T20:56:37Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=08b4dfc5734f5d2fce685eabcd65385a6656db2f'/>
<id>urn:sha1:08b4dfc5734f5d2fce685eabcd65385a6656db2f</id>
<content type='text'>
Thanks Simon Charette for the idea.
</content>
</entry>
<entry>
<title>Fixed #36644 -- Enabled empty order_by() to avoid pk ordering by first()/last().</title>
<updated>2026-02-06T20:45:45Z</updated>
<author>
<name>Nilesh Kumar Pahari</name>
<email>nileshpahari@protonmail.com</email>
</author>
<published>2026-02-05T22:23:33Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=6380e3f01e10f815de8c0223e3fd4bacb69f3808'/>
<id>urn:sha1:6380e3f01e10f815de8c0223e3fd4bacb69f3808</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Refs #36644 -- Applied default ordering after union().</title>
<updated>2026-02-06T20:45:45Z</updated>
<author>
<name>Nilesh Kumar Pahari</name>
<email>nileshpahari@protonmail.com</email>
</author>
<published>2026-02-05T22:21:45Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=087bb9e8f3478d53f12b1737af865992af17c5f2'/>
<id>urn:sha1:087bb9e8f3478d53f12b1737af865992af17c5f2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fixed #35442 -- Prevented N+1 queries in RelatedManager with only().</title>
<updated>2026-01-13T18:18:14Z</updated>
<author>
<name>Samriddha9619</name>
<email>sumitkumartripathi0@gmail.com</email>
</author>
<published>2026-01-05T05:48:40Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=040bb3eba72eb45020dd025d3f83094a0fcaf22f'/>
<id>urn:sha1:040bb3eba72eb45020dd025d3f83094a0fcaf22f</id>
<content type='text'>
Co-authored-by: Simon Charette &lt;charette.s@gmail.com&gt;
</content>
</entry>
<entry>
<title>Fixed #36702 -- Made bulk_create() return pk values set by an expression.</title>
<updated>2025-11-06T16:58:01Z</updated>
<author>
<name>us77ipis</name>
<email>75014848+us77ipis@users.noreply.github.com</email>
</author>
<published>2025-11-06T16:58:01Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=6d4d99b3cef4a6d931de02f89a493fb345dc438e'/>
<id>urn:sha1:6d4d99b3cef4a6d931de02f89a493fb345dc438e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Refs CVE-2025-64459 -- Avoided propagating invalid arguments to Q on dictionary expansion.</title>
<updated>2025-11-05T12:20:57Z</updated>
<author>
<name>Jacob Walls</name>
<email>jacobtylerwalls@gmail.com</email>
</author>
<published>2025-09-24T19:56:03Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=3c3f46357718166069948625354b8315a8505262'/>
<id>urn:sha1:3c3f46357718166069948625354b8315a8505262</id>
<content type='text'>
</content>
</entry>
</feed>
