What's Changed
Mypy plugin fixes
Strings/translations
- Enhance support for gettext_lazy in AdminSite and ModelAdmin by @rclement in #1296
- Support lazy strings for form errors and ValidationError by @mschoettle in #1319
- add support for send_mail subject using gettext_lazy by @mschoettle in #1304
- Add FAQ entry regarding StrPromise to README by @mschoettle in #1320
GeoDjango
- GeoDjango spatial reference fixes by @mjakob in #1265
- Improve GeoDjango type-hints by @ciscorn in #1299
Decorators
- Fix @classproperty decorator by @intgr in #1287
- Improve types of
django.contrib.admin.decorators
by @flaeppe in #1267 - Improve ModelAdmin and decorator hints and attributes, add tests by @intgr in #1292
- Improve system check registry hints by @intgr in #1249
- Fix override_settings decorator typing by @martinlehoux in #1322
Other type stubs changes
- Add LANGUAGE_COOKIE_SECURE setting by @sshishov in #1294
- Added types for template.backends.django.Template by @smithdc1 in #1302
- request arg to shortcuts.render() can be None. by @smithdc1 in #1305
- Add typing for data parameter in get from RequestFactory, test Client and urlencode by @nils-van-zuijlen in #1297
- Type cache delete functions to return bool by @flaeppe in #1310
- Allow expressions in CheckConstraint.check by @adamchainz in #1219
- Improve some DB expression types by @adamchainz in #1243
- Add support for
django.core.cache.backends.memcached.PyMemcacheCache
by @ngnpope in #1314
Housekeeping
- Version 1.13.2 release by @intgr in #1326
- Used _ContextKeys for context like dicts by @smithdc1 in #1298
- change render_to_string context type by @mschoettle in #1306
- Revert "Used _ContextKeys for context like dicts" by @intgr in #1311
CI
- Run apt-get update in CI by @adamchainz in #1313
Dependency updates
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #1291
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #1293
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #1301
- Bump black from 22.10.0 to 22.12.0 by @dependabot in #1290
- Bump pre-commit from 2.20.0 to 2.21.0 by @dependabot in #1300
- Bump gitpython from 3.1.29 to 3.1.30 by @dependabot in #1303
- Bump pytest from 7.2.0 to 7.2.1 by @dependabot in #1324
- Bump requests from 2.28.1 to 2.28.2 by @dependabot in #1321
New Contributors
- @sshishov made their first contribution in #1294
- @rclement made their first contribution in #1296
- @mschoettle made their first contribution in #1304
- @nils-van-zuijlen made their first contribution in #1297
- @ciscorn made their first contribution in #1299
- @jimmylai made their first contribution in #1317
Full Changelog: 1.13.1...1.13.2