Skip to content

[pull] main from django:main#323

Merged
pull[bot] merged 3 commits intothreatcode:mainfrom
django:main
Mar 11, 2026
Merged

[pull] main from django:main#323
pull[bot] merged 3 commits intothreatcode:mainfrom
django:main

Conversation

@pull
Copy link

@pull pull bot commented Mar 11, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

kezabelle and others added 3 commits March 11, 2026 18:05
…t cloning.

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.
…usages.

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.
…is not provided.

Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
@pull pull bot locked and limited conversation to collaborators Mar 11, 2026
@pull pull bot added the ⤵️ pull label Mar 11, 2026
@pull pull bot merged commit b7c9c88 into threatcode:main Mar 11, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant