What's Changed
Improvements
- Update
add_ordering
signature too by @UnknownPlatypus in #2822 - Support
related_query_name
inModel._meta.get_fields
by @UnknownPlatypus in #2821 - django.urls.resolve can also take _StrPromise by @asottile in #2826
- Add
strict_model_abstract_attrs
setting to allowmodels.Model.objects
access by @sobolevn in #2830 - Refactor
_replace_type_var
that can potentially cause cache problems by @sobolevn in #2834 - Fix
union
/intersection
/difference
to support QuerySet usingvalues_list
andvalues
by @UnknownPlatypus in #2829 - fix: allow to query decimal fields with int by @sk- in #2838
- Fix the
log_action
deprecation notice by @UnknownPlatypus in #2839 - BaseForm.add_error: Use covariant types by @inducer in #2849
- Allow to annotate existing model field de-selected via prior
.values
/.values_list
calls by @UnknownPlatypus in #2836 - Support
GenericPrefetch
by @UnknownPlatypus in #2851 - Also typecheck
aget
calls by @UnknownPlatypus in #2856 - Validation of the
fields
argument tobulk_update
by @UnknownPlatypus in #2808
Housekeeping & CI
- Add
mypy_primer
workflow by @sobolevn in #2819 - Remove magically added
django.contrib.contenttypes
installed app in tests by @UnknownPlatypus in #2853 - Use consistent indentation in
pyproject.toml
by @intgr in #2847 - Version 5.2.6 release by @intgr in #2859
Ruff
- Bump
ruff
to0.13.0
by @sobolevn in #2828 - Add some RET plugin ruff rules by @UnknownPlatypus in #2852
- Enable more ruff rules by @UnknownPlatypus in #2855
- Fix merge conflict + re-run pre-commit on all files by @UnknownPlatypus in #2854
uv
package manager
- Update release documentation, workflow and build-and-check job to
uv
by @intgr in #2846 - Switch to
uv_build
build system & cleanup by @intgr in #2848 - Use same
uv
workspace fordjango-stubs-ext
also by @intgr in #2857 - Test updated release workflow - Version 5.2.6a1 release by @intgr in #2858
New Contributors
Full Changelog: 5.2.5...5.2.6