What's Changed
- Fix types for sessions by @ljodal in #1173
- Add SQLite backend is_in_memory_db() functions by @adamchainz in #1218
- Introduce
QuerySetAny
type for QuerySet isinstance checks by @PIG208 in #1199 - Add LANGUAGE_COOKIE_* settings by @andersk in #1228
- move _default_manager to ModelBase by @clouds56 in #1150
- Support more use cases of
gettext_lazy
. by @PIG208 in #1233 - Prefetch attributes by @g-as in #1234
- Typehint common dunder methods by @intgr in #1238
- Add Optional to LANGUAGE_COOKIE_SAMESITE by @andersk in #1246
- Add django.db.models.query.BaseIterable and subclasses by @joshua-jandyco in #1242
- Add Django 4.1 constraints violation_error_message by @martinlehoux in #1263
- Type
ModelAdmin.fieldsets
'description' option to supportgettext_lazy
by @flaeppe in #1268 - Type hint improvements for string promises, manager, query set by @benspaulding in #1272
- update django.contrib.messages to use _StrOrPromise by @terencehonles in #1274
- Add Django 4.0 trigram word classes by @michael-lazar in #1278
Fixes
Housekeeping
- Fix stackoverflow badge by @sobolevn in #1230
- revert changes in #1252 leaked into master by @hoefling in #1255
- Version 1.13.1 release by @sobolevn in #1241
Continuous integration
- Enable
pre-commit.ci
by @sobolevn in #1222 - Cancel old pipelines by @sobolevn in #1226
- Run pre-commit only on pre-commit.ci by @adamchainz in #1250
- Run checks against Django 4.1 and Python 3.11 by @michael-k in #1223
- Introduce
flake8-pyi
inpre-commit
checks by @hoefling in #1253 - Pin flake8-pyi to 22.10.0 by @hoefling in #1254
- revert changes done in #1253 that satisfy Y041, disable Y041 rule by @hoefling in #1256
- Fix CI: Update flake8-pyi by @intgr in #1279
Dependency updates
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #1236
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #1258
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #1275
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #1281
New Contributors
- @clouds56 made their first contribution in #1150
- @pre-commit-ci made their first contribution in #1236
- @joshua-jandyco made their first contribution in #1242
- @martinlehoux made their first contribution in #1263
- @benspaulding made their first contribution in #1272
- @michael-lazar made their first contribution in #1278
Full Changelog: 1.13.0...1.13.1