Skip to content

Commit

Permalink
chore(deps): update dependency django-stubs to v5 (#213)
Browse files Browse the repository at this point in the history
This PR contains the following updates:

| Package | Type | Update | Change | Pending |
|---|---|---|---|---|
| [django-stubs](https://github.com/typeddjango/django-stubs)
([changelog](https://github.com/typeddjango/django-stubs/releases))
| dev | major | `4.2.7` -> `5.1.0` | `5.1.1` |

---

### Release Notes

<details>
<summary>typeddjango/django-stubs (django-stubs)</summary>

###
[`v5.1.0`](https://github.com/typeddjango/django-stubs/releases/tag/5.1.0)

[Compare
Source](https://github.com/typeddjango/django-stubs/compare/5.0.4...5.1.0)

#### Headline changes

- Refactor support for `annotate` to utilise
`mypy.types.Instance.extra_attrs` by
[@&#8203;flaeppe](https://github.com/flaeppe) in
[https://github.com/typeddjango/django-stubs/pull/2319](https://github.com/typeddjango/django-stubs/pull/2319)
- Resolve configured `AUTH_USER_MODEL` with a `get_type_analyze_hook` by
[@&#8203;flaeppe](https://github.com/flaeppe) in
[https://github.com/typeddjango/django-stubs/pull/2335](https://github.com/typeddjango/django-stubs/pull/2335)

#### What's Changed

- Fix type hints for `SimpleTestCase` by
[@&#8203;flaeppe](https://github.com/flaeppe) in
[https://github.com/typeddjango/django-stubs/pull/2289](https://github.com/typeddjango/django-stubs/pull/2289)
- Check correct model on m2m reverse values/values_list by
[@&#8203;flaeppe](https://github.com/flaeppe) in
[https://github.com/typeddjango/django-stubs/pull/2288](https://github.com/typeddjango/django-stubs/pull/2288)
- match Field TypeVar variance in models.fields.related by
[@&#8203;asottile](https://github.com/asottile) in
[https://github.com/typeddjango/django-stubs/pull/2292](https://github.com/typeddjango/django-stubs/pull/2292)
- try and use named arguments from caller for matching name by
[@&#8203;asottile](https://github.com/asottile) in
[https://github.com/typeddjango/django-stubs/pull/2294](https://github.com/typeddjango/django-stubs/pull/2294)
- Allow `fields` being an `Iterable` in `bulk_update` by
[@&#8203;flaeppe](https://github.com/flaeppe) in
[https://github.com/typeddjango/django-stubs/pull/2296](https://github.com/typeddjango/django-stubs/pull/2296)
- Test usage of `from_queryset` manager as reverse manager by
[@&#8203;flaeppe](https://github.com/flaeppe) in
[https://github.com/typeddjango/django-stubs/pull/2295](https://github.com/typeddjango/django-stubs/pull/2295)
- A workaround for
[#&#8203;2299](https://github.com/typeddjango/django-stubs/issues/2299)
by [@&#8203;sobolevn](https://github.com/sobolevn) in
[https://github.com/typeddjango/django-stubs/pull/2300](https://github.com/typeddjango/django-stubs/pull/2300)
- Run mypy with `--strict` on `assert_type` tests by
[@&#8203;flaeppe](https://github.com/flaeppe) in
[https://github.com/typeddjango/django-stubs/pull/2301](https://github.com/typeddjango/django-stubs/pull/2301)
- Improve `get_context_object_name` on `SingleObjectMixin` and
`MultipleObjectMixin` by
[@&#8203;flaeppe](https://github.com/flaeppe) in
[https://github.com/typeddjango/django-stubs/pull/2298](https://github.com/typeddjango/django-stubs/pull/2298)
- Update pyright to 1.1.374 by
[@&#8203;sobolevn](https://github.com/sobolevn) in
[https://github.com/typeddjango/django-stubs/pull/2305](https://github.com/typeddjango/django-stubs/pull/2305)
- Remove `BaseManager.cache` attribute by
[@&#8203;flaeppe](https://github.com/flaeppe) in
[https://github.com/typeddjango/django-stubs/pull/2309](https://github.com/typeddjango/django-stubs/pull/2309)
- Loosen bound on `CurrentSiteManager` manager type var by
[@&#8203;flaeppe](https://github.com/flaeppe) in
[https://github.com/typeddjango/django-stubs/pull/2308](https://github.com/typeddjango/django-stubs/pull/2308)
- Update build status link for `django-stubs-ext` by
[@&#8203;flaeppe](https://github.com/flaeppe) in
[https://github.com/typeddjango/django-stubs/pull/2310](https://github.com/typeddjango/django-stubs/pull/2310)
- Use `Any` for `ConnectionProxy` attributes by
[@&#8203;RealOrangeOne](https://github.com/RealOrangeOne) in
[https://github.com/typeddjango/django-stubs/pull/2311](https://github.com/typeddjango/django-stubs/pull/2311)
- Remove `FieldDoesNotExist` from where it's not present at runtime by
[@&#8203;flaeppe](https://github.com/flaeppe) in
[https://github.com/typeddjango/django-stubs/pull/2313](https://github.com/typeddjango/django-stubs/pull/2313)
- Declare `ManyToManyField.description` a `_StrOrPromise` by
[@&#8203;flaeppe](https://github.com/flaeppe) in
[https://github.com/typeddjango/django-stubs/pull/2312](https://github.com/typeddjango/django-stubs/pull/2312)
- Don't populate a type arg for non generic managers by
[@&#8203;flaeppe](https://github.com/flaeppe) in
[https://github.com/typeddjango/django-stubs/pull/2314](https://github.com/typeddjango/django-stubs/pull/2314)
- Fixed bugs with RawQuerySet by
[@&#8203;ashm-dev](https://github.com/ashm-dev) in
[https://github.com/typeddjango/django-stubs/pull/2316](https://github.com/typeddjango/django-stubs/pull/2316)
- Add Typing for EmailField with Support for String Set and Get Types by
[@&#8203;ashm-dev](https://github.com/ashm-dev) in
[https://github.com/typeddjango/django-stubs/pull/2317](https://github.com/typeddjango/django-stubs/pull/2317)
- Do `models.Model` adjustments from `get_metaclass_hook` by
[@&#8203;flaeppe](https://github.com/flaeppe) in
[https://github.com/typeddjango/django-stubs/pull/2322](https://github.com/typeddjango/django-stubs/pull/2322)
- Bump django from 5.0.7 to 5.0.8 by
[@&#8203;sobolevn](https://github.com/sobolevn) in
[https://github.com/typeddjango/django-stubs/pull/2325](https://github.com/typeddjango/django-stubs/pull/2325)
- This PR adds some defaults to stubs with `stubdefaulter` by
[@&#8203;sobolevn](https://github.com/sobolevn) in
[https://github.com/typeddjango/django-stubs/pull/2326](https://github.com/typeddjango/django-stubs/pull/2326)
- Add a lot of runtime defaults to stubs with `stubdefaulter` by
[@&#8203;sobolevn](https://github.com/sobolevn) in
[https://github.com/typeddjango/django-stubs/pull/2327](https://github.com/typeddjango/django-stubs/pull/2327)
- Fix `tuple[A]` types to be `tuple[A, ...]` types by
[@&#8203;sobolevn](https://github.com/sobolevn) in
[https://github.com/typeddjango/django-stubs/pull/2328](https://github.com/typeddjango/django-stubs/pull/2328)
- Check annotated fields in `<QuerySet>.filter` call by
[@&#8203;flaeppe](https://github.com/flaeppe) in
[https://github.com/typeddjango/django-stubs/pull/2332](https://github.com/typeddjango/django-stubs/pull/2332)
- Refactor: Unify plugin check for model type info by
[@&#8203;flaeppe](https://github.com/flaeppe) in
[https://github.com/typeddjango/django-stubs/pull/2286](https://github.com/typeddjango/django-stubs/pull/2286)
- Enable `mypy.plugins.proper_plugin` by
[@&#8203;flaeppe](https://github.com/flaeppe) in
[https://github.com/typeddjango/django-stubs/pull/2333](https://github.com/typeddjango/django-stubs/pull/2333)
- Use mypy's `make_optional_type` instead of shipping our own by
[@&#8203;flaeppe](https://github.com/flaeppe) in
[https://github.com/typeddjango/django-stubs/pull/2334](https://github.com/typeddjango/django-stubs/pull/2334)
- Add arbitrary named arguments to
[@&#8203;receiver](https://github.com/receiver) decorator by
[@&#8203;craigds](https://github.com/craigds) in
[https://github.com/typeddjango/django-stubs/pull/2342](https://github.com/typeddjango/django-stubs/pull/2342)
- Bump django from 5.0.8 to 5.1 by
[@&#8203;Viicos](https://github.com/Viicos) in
[https://github.com/typeddjango/django-stubs/pull/2347](https://github.com/typeddjango/django-stubs/pull/2347)
- Don't modify return values of manager methods in place, modify a copy
instead by
[@&#8203;jkaikkosplk](https://github.com/jkaikkosplk) in
[https://github.com/typeddjango/django-stubs/pull/2345](https://github.com/typeddjango/django-stubs/pull/2345)
- \[5.1] Add slicing notation to F expressions by
[@&#8203;Viicos](https://github.com/Viicos) in
[https://github.com/typeddjango/django-stubs/pull/1897](https://github.com/typeddjango/django-stubs/pull/1897)
- 5.1: Deprecate CheckConstraint.check by
[@&#8203;q0w](https://github.com/q0w) in
[https://github.com/typeddjango/django-stubs/pull/2331](https://github.com/typeddjango/django-stubs/pull/2331)
- feat: Add missing stubs by
[@&#8203;BradleyKirton](https://github.com/BradleyKirton) in
[https://github.com/typeddjango/django-stubs/pull/2348](https://github.com/typeddjango/django-stubs/pull/2348)
- Update `utils` by [@&#8203;Viicos](https://github.com/Viicos)
in
[https://github.com/typeddjango/django-stubs/pull/2352](https://github.com/typeddjango/django-stubs/pull/2352)
- Update `contrib.sessions.backends` by
[@&#8203;Viicos](https://github.com/Viicos) in
[https://github.com/typeddjango/django-stubs/pull/2351](https://github.com/typeddjango/django-stubs/pull/2351)
- Update django to 5.1.1 by
[@&#8203;sobolevn](https://github.com/sobolevn) in
[https://github.com/typeddjango/django-stubs/pull/2360](https://github.com/typeddjango/django-stubs/pull/2360)
- Allow None return form model Field.formfield() by
[@&#8203;adamchainz](https://github.com/adamchainz) in
[https://github.com/typeddjango/django-stubs/pull/2363](https://github.com/typeddjango/django-stubs/pull/2363)
- add cache_name for django 5.1 by
[@&#8203;asottile](https://github.com/asottile) in
[https://github.com/typeddjango/django-stubs/pull/2365](https://github.com/typeddjango/django-stubs/pull/2365)
- Update Django 4.2 LTS version to 4.2.16 by
[@&#8203;intgr](https://github.com/intgr) in
[https://github.com/typeddjango/django-stubs/pull/2369](https://github.com/typeddjango/django-stubs/pull/2369)
- Document the release process by
[@&#8203;intgr](https://github.com/intgr) in
[https://github.com/typeddjango/django-stubs/pull/2371](https://github.com/typeddjango/django-stubs/pull/2371)
- Allow lookups on `.annotate` fields by
[@&#8203;sterliakov](https://github.com/sterliakov) in
[https://github.com/typeddjango/django-stubs/pull/2376](https://github.com/typeddjango/django-stubs/pull/2376)
- Break what apparently is a cycle involving custom User model and
`QuerySet.as_manager()` by
[@&#8203;sterliakov](https://github.com/sterliakov) in
[https://github.com/typeddjango/django-stubs/pull/2377](https://github.com/typeddjango/django-stubs/pull/2377)
- Version 5.1.0 release by
[@&#8203;richardebeling](https://github.com/richardebeling) in
[https://github.com/typeddjango/django-stubs/pull/2374](https://github.com/typeddjango/django-stubs/pull/2374)

#### New Contributors

- [@&#8203;RealOrangeOne](https://github.com/RealOrangeOne)
made their first contribution in
[https://github.com/typeddjango/django-stubs/pull/2311](https://github.com/typeddjango/django-stubs/pull/2311)
- [@&#8203;ashm-dev](https://github.com/ashm-dev) made their
first contribution in
[https://github.com/typeddjango/django-stubs/pull/2316](https://github.com/typeddjango/django-stubs/pull/2316)
- [@&#8203;craigds](https://github.com/craigds) made their
first contribution in
[https://github.com/typeddjango/django-stubs/pull/2342](https://github.com/typeddjango/django-stubs/pull/2342)
- [@&#8203;jkaikkosplk](https://github.com/jkaikkosplk) made
their first contribution in
[https://github.com/typeddjango/django-stubs/pull/2345](https://github.com/typeddjango/django-stubs/pull/2345)
- [@&#8203;BradleyKirton](https://github.com/BradleyKirton)
made their first contribution in
[https://github.com/typeddjango/django-stubs/pull/2348](https://github.com/typeddjango/django-stubs/pull/2348)
- [@&#8203;richardebeling](https://github.com/richardebeling)
made their first contribution in
[https://github.com/typeddjango/django-stubs/pull/2374](https://github.com/typeddjango/django-stubs/pull/2374)

**Full Changelog**:
https://github.com/typeddjango/django-stubs/compare/5.0.4...5.1.0

###
[`v5.0.4`](https://github.com/typeddjango/django-stubs/releases/tag/5.0.4)

[Compare
Source](https://github.com/typeddjango/django-stubs/compare/5.0.3...5.0.4)

#### What's Changed

This is a re-release of django-stubs `5.0.3` with a minor fix:

- Check correct model on other side of many to many reverse filtering by
[@&#8203;flaeppe](https://github.com/flaeppe) in
[https://github.com/typeddjango/django-stubs/pull/2283](https://github.com/typeddjango/django-stubs/pull/2283)

**Full Changelog**:
https://github.com/typeddjango/django-stubs/compare/5.0.3...5.0.4

### Release notes for version 5.0.3

#### What's Changed

- Release workflow: publish `django-stubs-ext` before `django-stubs` by
[@&#8203;flaeppe](https://github.com/flaeppe) in
[https://github.com/typeddjango/django-stubs/pull/2188](https://github.com/typeddjango/django-stubs/pull/2188)
- Migrate `apps/test_config.yml` 'assert_type' tests by
[@&#8203;flaeppe](https://github.com/flaeppe) in
[https://github.com/typeddjango/django-stubs/pull/2190](https://github.com/typeddjango/django-stubs/pull/2190)
- Add `ManyToManyField.m2m_field_name` and `Model._get_pk_val` methods
by [@&#8203;YPCrumble](https://github.com/YPCrumble) in
[https://github.com/typeddjango/django-stubs/pull/2177](https://github.com/typeddjango/django-stubs/pull/2177)
- `Lookup` should be a subtype of `Expression` by
[@&#8203;mkurnikov](https://github.com/mkurnikov) in
[https://github.com/typeddjango/django-stubs/pull/2199](https://github.com/typeddjango/django-stubs/pull/2199)
- Update `django.db.models.functions`: allow `Combinable` as parameter,
add `Round` function by
[@&#8203;noamkush](https://github.com/noamkush) in
[https://github.com/typeddjango/django-stubs/pull/2195](https://github.com/typeddjango/django-stubs/pull/2195)
- Add missing `django.core.management.utils` functions by
[@&#8203;Viicos](https://github.com/Viicos) in
[https://github.com/typeddjango/django-stubs/pull/2200](https://github.com/typeddjango/django-stubs/pull/2200)
- Improve `django.middleware` stubs by
[@&#8203;Viicos](https://github.com/Viicos) in
[https://github.com/typeddjango/django-stubs/pull/2202](https://github.com/typeddjango/django-stubs/pull/2202)
- Improve `django.http` stubs by
[@&#8203;Viicos](https://github.com/Viicos) in
[https://github.com/typeddjango/django-stubs/pull/2201](https://github.com/typeddjango/django-stubs/pull/2201)
- Tests: Migrate `db/models/test_constraints.yml` to 'assert_type' tests
by [@&#8203;flaeppe](https://github.com/flaeppe) in
[https://github.com/typeddjango/django-stubs/pull/2204](https://github.com/typeddjango/django-stubs/pull/2204)
- Allow any function for admin's `display` and `action` decorators by
[@&#8203;flaeppe](https://github.com/flaeppe) in
[https://github.com/typeddjango/django-stubs/pull/2210](https://github.com/typeddjango/django-stubs/pull/2210)
- Remove invalid re-export `django.forms.ChoiceWidget` by
[@&#8203;asottile](https://github.com/asottile) in
[https://github.com/typeddjango/django-stubs/pull/2207](https://github.com/typeddjango/django-stubs/pull/2207)
- Model.\_meta.pk is non-None by
[@&#8203;asottile](https://github.com/asottile) in
[https://github.com/typeddjango/django-stubs/pull/2218](https://github.com/typeddjango/django-stubs/pull/2218)
- update / create defaults are read-only Mapping by
[@&#8203;asottile](https://github.com/asottile) in
[https://github.com/typeddjango/django-stubs/pull/2216](https://github.com/typeddjango/django-stubs/pull/2216)
- Add missing math.Random database function by
[@&#8203;noamkush](https://github.com/noamkush) in
[https://github.com/typeddjango/django-stubs/pull/2222](https://github.com/typeddjango/django-stubs/pull/2222)
- Make `ReverseManyToOneDescriptor` generic over a model by
[@&#8203;flaeppe](https://github.com/flaeppe) in
[https://github.com/typeddjango/django-stubs/pull/2227](https://github.com/typeddjango/django-stubs/pull/2227)
- Extract through table creation to separate method by
[@&#8203;flaeppe](https://github.com/flaeppe) in
[https://github.com/typeddjango/django-stubs/pull/2229](https://github.com/typeddjango/django-stubs/pull/2229)
- Do many related manager creation during semantic analysis by
[@&#8203;flaeppe](https://github.com/flaeppe) in
[https://github.com/typeddjango/django-stubs/pull/2231](https://github.com/typeddjango/django-stubs/pull/2231)
- Expand CheckRegistry.register as function
([#&#8203;2232](https://github.com/typeddjango/django-stubs/issues/2232))
by [@&#8203;jwhitlock](https://github.com/jwhitlock) in
[https://github.com/typeddjango/django-stubs/pull/2233](https://github.com/typeddjango/django-stubs/pull/2233)
- don't copy magic or private methods in from_queryset managers by
[@&#8203;asottile](https://github.com/asottile) in
[https://github.com/typeddjango/django-stubs/pull/2240](https://github.com/typeddjango/django-stubs/pull/2240)
- Make plugin handle explicitly declared reverse descriptors for FKs by
[@&#8203;flaeppe](https://github.com/flaeppe) in
[https://github.com/typeddjango/django-stubs/pull/2230](https://github.com/typeddjango/django-stubs/pull/2230)
- Expect a `QuerySet` for multiple defaults in `MultipleObjectMixin` by
[@&#8203;flaeppe](https://github.com/flaeppe) in
[https://github.com/typeddjango/django-stubs/pull/2191](https://github.com/typeddjango/django-stubs/pull/2191)
- fix handling of explicit `objects` annotation by
[@&#8203;asottile](https://github.com/asottile) in
[https://github.com/typeddjango/django-stubs/pull/2241](https://github.com/typeddjango/django-stubs/pull/2241)
- Add atomic_blocks to base DB wrapper by
[@&#8203;palfrey](https://github.com/palfrey) in
[https://github.com/typeddjango/django-stubs/pull/2242](https://github.com/typeddjango/django-stubs/pull/2242)
- walk mro for Field set type annotations by
[@&#8203;asottile](https://github.com/asottile) in
[https://github.com/typeddjango/django-stubs/pull/2244](https://github.com/typeddjango/django-stubs/pull/2244)
- Add `serialized_aliases` parameter to `setup_databases` function in
`django.test.utils` by
[@&#8203;DongwookKim0823](https://github.com/DongwookKim0823)
in
[https://github.com/typeddjango/django-stubs/pull/2247](https://github.com/typeddjango/django-stubs/pull/2247)
- use field annotations for values_list types by
[@&#8203;asottile](https://github.com/asottile) in
[https://github.com/typeddjango/django-stubs/pull/2248](https://github.com/typeddjango/django-stubs/pull/2248)
- Improve types of `ConnectionProxy` by
[@&#8203;Viicos](https://github.com/Viicos) in
[https://github.com/typeddjango/django-stubs/pull/2246](https://github.com/typeddjango/django-stubs/pull/2246)
- Add `get_template_tag_modules` function signature to
`django.template.backends.django` by
[@&#8203;DongwookKim0823](https://github.com/DongwookKim0823)
in
[https://github.com/typeddjango/django-stubs/pull/2250](https://github.com/typeddjango/django-stubs/pull/2250)
- add PlaceholderNode when deferring manager class hook by
[@&#8203;asottile](https://github.com/asottile) in
[https://github.com/typeddjango/django-stubs/pull/2228](https://github.com/typeddjango/django-stubs/pull/2228)
- Update function signatures for `django.db.models.sql.Query` class by
[@&#8203;DongwookKim0823](https://github.com/DongwookKim0823)
in
[https://github.com/typeddjango/django-stubs/pull/2253](https://github.com/typeddjango/django-stubs/pull/2253)
- Update `admin.sites._ViewType` bound to allow `StreamingHttpResponse`
by [@&#8203;savanto](https://github.com/savanto) in
[https://github.com/typeddjango/django-stubs/pull/2256](https://github.com/typeddjango/django-stubs/pull/2256)
- Add `Options._get_fields` by
[@&#8203;Viicos](https://github.com/Viicos) in
[https://github.com/typeddjango/django-stubs/pull/2254](https://github.com/typeddjango/django-stubs/pull/2254)
- Support inheriting ManyToManyField from an abstract model by
[@&#8203;flaeppe](https://github.com/flaeppe) in
[https://github.com/typeddjango/django-stubs/pull/2260](https://github.com/typeddjango/django-stubs/pull/2260)
- Allow single generic param for Field in ForeignKey by
[@&#8203;rafonseca](https://github.com/rafonseca) in
[https://github.com/typeddjango/django-stubs/pull/2261](https://github.com/typeddjango/django-stubs/pull/2261)
- Refactor: Unify plugin check for model type info by
[@&#8203;flaeppe](https://github.com/flaeppe) in
[https://github.com/typeddjango/django-stubs/pull/2263](https://github.com/typeddjango/django-stubs/pull/2263)
- add `Path` type argument to tuple returned by `get_app_template_dirs`
by
[@&#8203;joshuadavidthomas](https://github.com/joshuadavidthomas)
in
[https://github.com/typeddjango/django-stubs/pull/2266](https://github.com/typeddjango/django-stubs/pull/2266)
- add missing type argument to `Paginator` by
[@&#8203;joshuadavidthomas](https://github.com/joshuadavidthomas)
in
[https://github.com/typeddjango/django-stubs/pull/2271](https://github.com/typeddjango/django-stubs/pull/2271)
- Update mypy to 1.11.0 by
[@&#8203;sobolevn](https://github.com/sobolevn) in
[https://github.com/typeddjango/django-stubs/pull/2269](https://github.com/typeddjango/django-stubs/pull/2269)
- Check calls to filtering manager methods involving `ManyToManyField`
by [@&#8203;flaeppe](https://github.com/flaeppe) in
[https://github.com/typeddjango/django-stubs/pull/2275](https://github.com/typeddjango/django-stubs/pull/2275)
- Prepare for a release `5.0.3` by
[@&#8203;flaeppe](https://github.com/flaeppe) in
[https://github.com/typeddjango/django-stubs/pull/2274](https://github.com/typeddjango/django-stubs/pull/2274)
- lookup manager type via mro by
[@&#8203;asottile](https://github.com/asottile) in
[https://github.com/typeddjango/django-stubs/pull/2276](https://github.com/typeddjango/django-stubs/pull/2276)
- Check model fields on filtering methods of queryset types by
[@&#8203;flaeppe](https://github.com/flaeppe) in
[https://github.com/typeddjango/django-stubs/pull/2277](https://github.com/typeddjango/django-stubs/pull/2277)
- fill QuerySet generics using the manager's model type by
[@&#8203;asottile](https://github.com/asottile) in
[https://github.com/typeddjango/django-stubs/pull/2281](https://github.com/typeddjango/django-stubs/pull/2281)
- convert as_manager hooks to base class hook by
[@&#8203;asottile](https://github.com/asottile) in
[https://github.com/typeddjango/django-stubs/pull/2282](https://github.com/typeddjango/django-stubs/pull/2282)

#### New Contributors

- [@&#8203;YPCrumble](https://github.com/YPCrumble) made their
first contribution in
[https://github.com/typeddjango/django-stubs/pull/2177](https://github.com/typeddjango/django-stubs/pull/2177)
- [@&#8203;jwhitlock](https://github.com/jwhitlock) made their
first contribution in
[https://github.com/typeddjango/django-stubs/pull/2233](https://github.com/typeddjango/django-stubs/pull/2233)
- [@&#8203;DongwookKim0823](https://github.com/DongwookKim0823)
made their first contribution in
[https://github.com/typeddjango/django-stubs/pull/2247](https://github.com/typeddjango/django-stubs/pull/2247)
- [@&#8203;savanto](https://github.com/savanto) made their
first contribution in
[https://github.com/typeddjango/django-stubs/pull/2256](https://github.com/typeddjango/django-stubs/pull/2256)
- [@&#8203;rafonseca](https://github.com/rafonseca) made their
first contribution in
[https://github.com/typeddjango/django-stubs/pull/2261](https://github.com/typeddjango/django-stubs/pull/2261)
-
[@&#8203;joshuadavidthomas](https://github.com/joshuadavidthomas)
made their first contribution in
[https://github.com/typeddjango/django-stubs/pull/2266](https://github.com/typeddjango/django-stubs/pull/2266)

**Full Changelog**:
https://github.com/typeddjango/django-stubs/compare/5.0.2...5.0.3

###
[`v5.0.3`](https://github.com/typeddjango/django-stubs/releases/tag/5.0.3)

[Compare
Source](https://github.com/typeddjango/django-stubs/compare/5.0.2...5.0.3)

#### What's Changed

- Release workflow: publish `django-stubs-ext` before `django-stubs` by
[@&#8203;flaeppe](https://github.com/flaeppe) in
[https://github.com/typeddjango/django-stubs/pull/2188](https://github.com/typeddjango/django-stubs/pull/2188)
- Migrate `apps/test_config.yml` 'assert_type' tests by
[@&#8203;flaeppe](https://github.com/flaeppe) in
[https://github.com/typeddjango/django-stubs/pull/2190](https://github.com/typeddjango/django-stubs/pull/2190)
- Add `ManyToManyField.m2m_field_name` and `Model._get_pk_val` methods
by [@&#8203;YPCrumble](https://github.com/YPCrumble) in
[https://github.com/typeddjango/django-stubs/pull/2177](https://github.com/typeddjango/django-stubs/pull/2177)
- `Lookup` should be a subtype of `Expression` by
[@&#8203;mkurnikov](https://github.com/mkurnikov) in
[https://github.com/typeddjango/django-stubs/pull/2199](https://github.com/typeddjango/django-stubs/pull/2199)
- Update `django.db.models.functions`: allow `Combinable` as parameter,
add `Round` function by
[@&#8203;noamkush](https://github.com/noamkush) in
[https://github.com/typeddjango/django-stubs/pull/2195](https://github.com/typeddjango/django-stubs/pull/2195)
- Add missing `django.core.management.utils` functions by
[@&#8203;Viicos](https://github.com/Viicos) in
[https://github.com/typeddjango/django-stubs/pull/2200](https://github.com/typeddjango/django-stubs/pull/2200)
- Improve `django.middleware` stubs by
[@&#8203;Viicos](https://github.com/Viicos) in
[https://github.com/typeddjango/django-stubs/pull/2202](https://github.com/typeddjango/django-stubs/pull/2202)
- Improve `django.http` stubs by
[@&#8203;Viicos](https://github.com/Viicos) in
[https://github.com/typeddjango/django-stubs/pull/2201](https://github.com/typeddjango/django-stubs/pull/2201)
- Tests: Migrate `db/models/test_constraints.yml` to 'assert_type' tests
by [@&#8203;flaeppe](https://github.com/flaeppe) in
[https://github.com/typeddjango/django-stubs/pull/2204](https://github.com/typeddjango/django-stubs/pull/2204)
- Allow any function for admin's `display` and `action` decorators by
[@&#8203;flaeppe](https://github.com/flaeppe) in
[https://github.com/typeddjango/django-stubs/pull/2210](https://github.com/typeddjango/django-stubs/pull/2210)
- Remove invalid re-export `django.forms.ChoiceWidget` by
[@&#8203;asottile](https://github.com/asottile) in
[https://github.com/typeddjango/django-stubs/pull/2207](https://github.com/typeddjango/django-stubs/pull/2207)
- Model.\_meta.pk is non-None by
[@&#8203;asottile](https://github.com/asottile) in
[https://github.com/typeddjango/django-stubs/pull/2218](https://github.com/typeddjango/django-stubs/pull/2218)
- update / create defaults are read-only Mapping by
[@&#8203;asottile](https://github.com/asottile) in
[https://github.com/typeddjango/django-stubs/pull/2216](https://github.com/typeddjango/django-stubs/pull/2216)
- Add missing math.Random database function by
[@&#8203;noamkush](https://github.com/noamkush) in
[https://github.com/typeddjango/django-stubs/pull/2222](https://github.com/typeddjango/django-stubs/pull/2222)
- Make `ReverseManyToOneDescriptor` generic over a model by
[@&#8203;flaeppe](https://github.com/flaeppe) in
[https://github.com/typeddjango/django-stubs/pull/2227](https://github.com/typeddjango/django-stubs/pull/2227)
- Extract through table creation to separate method by
[@&#8203;flaeppe](https://github.com/flaeppe) in
[https://github.com/typeddjango/django-stubs/pull/2229](https://github.com/typeddjango/django-stubs/pull/2229)
- Do many related manager creation during semantic analysis by
[@&#8203;flaeppe](https://github.com/flaeppe) in
[https://github.com/typeddjango/django-stubs/pull/2231](https://github.com/typeddjango/django-stubs/pull/2231)
- Expand CheckRegistry.register as function
([#&#8203;2232](https://github.com/typeddjango/django-stubs/issues/2232))
by [@&#8203;jwhitlock](https://github.com/jwhitlock) in
[https://github.com/typeddjango/django-stubs/pull/2233](https://github.com/typeddjango/django-stubs/pull/2233)
- don't copy magic or private methods in from_queryset managers by
[@&#8203;asottile](https://github.com/asottile) in
[https://github.com/typeddjango/django-stubs/pull/2240](https://github.com/typeddjango/django-stubs/pull/2240)
- Make plugin handle explicitly declared reverse descriptors for FKs by
[@&#8203;flaeppe](https://github.com/flaeppe) in
[https://github.com/typeddjango/django-stubs/pull/2230](https://github.com/typeddjango/django-stubs/pull/2230)
- Expect a `QuerySet` for multiple defaults in `MultipleObjectMixin` by
[@&#8203;flaeppe](https://github.com/flaeppe) in
[https://github.com/typeddjango/django-stubs/pull/2191](https://github.com/typeddjango/django-stubs/pull/2191)
- fix handling of explicit `objects` annotation by
[@&#8203;asottile](https://github.com/asottile) in
[https://github.com/typeddjango/django-stubs/pull/2241](https://github.com/typeddjango/django-stubs/pull/2241)
- Add atomic_blocks to base DB wrapper by
[@&#8203;palfrey](https://github.com/palfrey) in
[https://github.com/typeddjango/django-stubs/pull/2242](https://github.com/typeddjango/django-stubs/pull/2242)
- walk mro for Field set type annotations by
[@&#8203;asottile](https://github.com/asottile) in
[https://github.com/typeddjango/django-stubs/pull/2244](https://github.com/typeddjango/django-stubs/pull/2244)
- Add `serialized_aliases` parameter to `setup_databases` function in
`django.test.utils` by
[@&#8203;DongwookKim0823](https://github.com/DongwookKim0823)
in
[https://github.com/typeddjango/django-stubs/pull/2247](https://github.com/typeddjango/django-stubs/pull/2247)
- use field annotations for values_list types by
[@&#8203;asottile](https://github.com/asottile) in
[https://github.com/typeddjango/django-stubs/pull/2248](https://github.com/typeddjango/django-stubs/pull/2248)
- Improve types of `ConnectionProxy` by
[@&#8203;Viicos](https://github.com/Viicos) in
[https://github.com/typeddjango/django-stubs/pull/2246](https://github.com/typeddjango/django-stubs/pull/2246)
- Add `get_template_tag_modules` function signature to
`django.template.backends.django` by
[@&#8203;DongwookKim0823](https://github.com/DongwookKim0823)
in
[https://github.com/typeddjango/django-stubs/pull/2250](https://github.com/typeddjango/django-stubs/pull/2250)
- add PlaceholderNode when deferring manager class hook by
[@&#8203;asottile](https://github.com/asottile) in
[https://github.com/typeddjango/django-stubs/pull/2228](https://github.com/typeddjango/django-stubs/pull/2228)
- Update function signatures for `django.db.models.sql.Query` class by
[@&#8203;DongwookKim0823](https://github.com/DongwookKim0823)
in
[https://github.com/typeddjango/django-stubs/pull/2253](https://github.com/typeddjango/django-stubs/pull/2253)
- Update `admin.sites._ViewType` bound to allow `StreamingHttpResponse`
by [@&#8203;savanto](https://github.com/savanto) in
[https://github.com/typeddjango/django-stubs/pull/2256](https://github.com/typeddjango/django-stubs/pull/2256)
- Add `Options._get_fields` by
[@&#8203;Viicos](https://github.com/Viicos) in
[https://github.com/typeddjango/django-stubs/pull/2254](https://github.com/typeddjango/django-stubs/pull/2254)
- Support inheriting ManyToManyField from an abstract model by
[@&#8203;flaeppe](https://github.com/flaeppe) in
[https://github.com/typeddjango/django-stubs/pull/2260](https://github.com/typeddjango/django-stubs/pull/2260)
- Allow single generic param for Field in ForeignKey by
[@&#8203;rafonseca](https://github.com/rafonseca) in
[https://github.com/typeddjango/django-stubs/pull/2261](https://github.com/typeddjango/django-stubs/pull/2261)
- Refactor: Unify plugin check for model type info by
[@&#8203;flaeppe](https://github.com/flaeppe) in
[https://github.com/typeddjango/django-stubs/pull/2263](https://github.com/typeddjango/django-stubs/pull/2263)
- add `Path` type argument to tuple returned by `get_app_template_dirs`
by
[@&#8203;joshuadavidthomas](https://github.com/joshuadavidthomas)
in
[https://github.com/typeddjango/django-stubs/pull/2266](https://github.com/typeddjango/django-stubs/pull/2266)
- add missing type argument to `Paginator` by
[@&#8203;joshuadavidthomas](https://github.com/joshuadavidthomas)
in
[https://github.com/typeddjango/django-stubs/pull/2271](https://github.com/typeddjango/django-stubs/pull/2271)
- Update mypy to 1.11.0 by
[@&#8203;sobolevn](https://github.com/sobolevn) in
[https://github.com/typeddjango/django-stubs/pull/2269](https://github.com/typeddjango/django-stubs/pull/2269)
- Check calls to filtering manager methods involving `ManyToManyField`
by [@&#8203;flaeppe](https://github.com/flaeppe) in
[https://github.com/typeddjango/django-stubs/pull/2275](https://github.com/typeddjango/django-stubs/pull/2275)
- Prepare for a release `5.0.3` by
[@&#8203;flaeppe](https://github.com/flaeppe) in
[https://github.com/typeddjango/django-stubs/pull/2274](https://github.com/typeddjango/django-stubs/pull/2274)
- lookup manager type via mro by
[@&#8203;asottile](https://github.com/asottile) in
[https://github.com/typeddjango/django-stubs/pull/2276](https://github.com/typeddjango/django-stubs/pull/2276)
- Check model fields on filtering methods of queryset types by
[@&#8203;flaeppe](https://github.com/flaeppe) in
[https://github.com/typeddjango/django-stubs/pull/2277](https://github.com/typeddjango/django-stubs/pull/2277)
- fill QuerySet generics using the manager's model type by
[@&#8203;asottile](https://github.com/asottile) in
[https://github.com/typeddjango/django-stubs/pull/2281](https://github.com/typeddjango/django-stubs/pull/2281)
- convert as_manager hooks to base class hook by
[@&#8203;asottile](https://github.com/asottile) in
[https://github.com/typeddjango/django-stubs/pull/2282](https://github.com/typeddjango/django-stubs/pull/2282)

#### New Contributors

- [@&#8203;YPCrumble](https://github.com/YPCrumble) made their
first contribution in
[https://github.com/typeddjango/django-stubs/pull/2177](https://github.com/typeddjango/django-stubs/pull/2177)
- [@&#8203;jwhitlock](https://github.com/jwhitlock) made their
first contribution in
[https://github.com/typeddjango/django-stubs/pull/2233](https://github.com/typeddjango/django-stubs/pull/2233)
- [@&#8203;DongwookKim0823](https://github.com/DongwookKim0823)
made their first contribution in
[https://github.com/typeddjango/django-stubs/pull/2247](https://github.com/typeddjango/django-stubs/pull/2247)
- [@&#8203;savanto](https://github.com/savanto) made their
first contribution in
[https://github.com/typeddjango/django-stubs/pull/2256](https://github.com/typeddjango/django-stubs/pull/2256)
- [@&#8203;rafonseca](https://github.com/rafonseca) made their
first contribution in
[https://github.com/typeddjango/django-stubs/pull/2261](https://github.com/typeddjango/django-stubs/pull/2261)
-
[@&#8203;joshuadavidthomas](https://github.com/joshuadavidthomas)
made their first contribution in
[https://github.com/typeddjango/django-stubs/pull/2266](https://github.com/typeddjango/django-stubs/pull/2266)

**Full Changelog**:
https://github.com/typeddjango/django-stubs/compare/5.0.2...5.0.3

###
[`v5.0.2`](https://github.com/typeddjango/django-stubs/releases/tag/5.0.2)

[Compare
Source](https://github.com/typeddjango/django-stubs/compare/5.0.1...5.0.2)

#### What's Changed

This is a re-release of django-stubs `5.0.1` with a minor fix:

- Set lower bound of `django-stubs-ext` dependency to `5.0.2` by
[@&#8203;flaeppe](https://github.com/flaeppe) in
[https://github.com/typeddjango/django-stubs/pull/2186](https://github.com/typeddjango/django-stubs/pull/2186)

**Full Changelog**:
https://github.com/typeddjango/django-stubs/compare/5.0.1...5.0.2

### Release notes for version 5.0.1

#### Headline changes

- Support for Django 4.1 have been dropped by
[@&#8203;sobolevn](https://github.com/sobolevn) in
[https://github.com/typeddjango/django-stubs/pull/2133](https://github.com/typeddjango/django-stubs/pull/2133)
- A new extra, `django-stubs[oracle]`, was added by
[@&#8203;sobolevn](https://github.com/sobolevn) in
[https://github.com/typeddjango/django-stubs/pull/2131](https://github.com/typeddjango/django-stubs/pull/2131)
- Remove QuerySet alias hacks via PEP 696 TypeVar defaults. All usages
of `QuerySetAny` and `ValuesQuerySet` can now be replaced with simple
`QuerySet` by [@&#8203;intgr](https://github.com/intgr) in
[https://github.com/typeddjango/django-stubs/pull/2104](https://github.com/typeddjango/django-stubs/pull/2104)

[More details in this
announcement](https://github.com/typeddjango/django-stubs/discussions/2194)

#### What's Changed

- 5.0: Update `django.contrib.admin.views` and `django.forms.forms.Form`
metaclass by [@&#8203;sudosubin](https://github.com/sudosubin)
in
[https://github.com/typeddjango/django-stubs/pull/2079](https://github.com/typeddjango/django-stubs/pull/2079)
- Fix IndexError for custom queryset managers by
[@&#8203;meshy](https://github.com/meshy) in
[https://github.com/typeddjango/django-stubs/pull/1913](https://github.com/typeddjango/django-stubs/pull/1913)
- 5.0: Update `django.db.models.lookups` by
[@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in
[https://github.com/typeddjango/django-stubs/pull/2103](https://github.com/typeddjango/django-stubs/pull/2103)
- 5.0: Update `django.db.backends.utils` by
[@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in
[https://github.com/typeddjango/django-stubs/pull/2102](https://github.com/typeddjango/django-stubs/pull/2102)
- 5.0: Update `django.forms.field.Field` by
[@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in
[https://github.com/typeddjango/django-stubs/pull/2107](https://github.com/typeddjango/django-stubs/pull/2107)
- 5.0: Update `django.contrib.messages.storage.cookie` by
[@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in
[https://github.com/typeddjango/django-stubs/pull/2106](https://github.com/typeddjango/django-stubs/pull/2106)
- Tests: Add test case for settings import cycle by
[@&#8203;intgr](https://github.com/intgr) in
[https://github.com/typeddjango/django-stubs/pull/2098](https://github.com/typeddjango/django-stubs/pull/2098)
- 5.0: Update `django.db.models.expressions` by
[@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in
[https://github.com/typeddjango/django-stubs/pull/2110](https://github.com/typeddjango/django-stubs/pull/2110)
- 5.0: Update `django.contrib.auth.backends` by
[@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in
[https://github.com/typeddjango/django-stubs/pull/2111](https://github.com/typeddjango/django-stubs/pull/2111)
- 5.0: Update `django.contrib.auth.base_user` by
[@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in
[https://github.com/typeddjango/django-stubs/pull/2113](https://github.com/typeddjango/django-stubs/pull/2113)
- 5.0: Update `django.db.migrations.serializer` by
[@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in
[https://github.com/typeddjango/django-stubs/pull/2109](https://github.com/typeddjango/django-stubs/pull/2109)
- 5.0: Update `django.db.backends.base.features.BaseDatabaseFeature` by
[@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in
[https://github.com/typeddjango/django-stubs/pull/2099](https://github.com/typeddjango/django-stubs/pull/2099)
- 5.0: Update
`django.db.backends.base.operations.BaseDatabaseOperations` by
[@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in
[https://github.com/typeddjango/django-stubs/pull/2100](https://github.com/typeddjango/django-stubs/pull/2100)
- Fix annotation for `request.auser` by
[@&#8203;bshelkhonov](https://github.com/bshelkhonov) in
[https://github.com/typeddjango/django-stubs/pull/2108](https://github.com/typeddjango/django-stubs/pull/2108)
- 5.0: Update ` django.contrib.gis.admin.widgets `and
`django.contrib.gis.admin.options` by
[@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in
[https://github.com/typeddjango/django-stubs/pull/2116](https://github.com/typeddjango/django-stubs/pull/2116)
- 5.0: Update `django.forms.boundfield` and `django.forms.utils` by
[@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in
[https://github.com/typeddjango/django-stubs/pull/2118](https://github.com/typeddjango/django-stubs/pull/2118)
- Prepare django-stubs-ext for QuerySet typevar refactor by
[@&#8203;intgr](https://github.com/intgr) in
[https://github.com/typeddjango/django-stubs/pull/2117](https://github.com/typeddjango/django-stubs/pull/2117)
- `BaseBackend.get_user`: Relax `user_id` param type by
[@&#8203;tony](https://github.com/tony) in
[https://github.com/typeddjango/django-stubs/pull/2121](https://github.com/typeddjango/django-stubs/pull/2121)
- 5.0: Update `django.forms.renderers` by
[@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in
[https://github.com/typeddjango/django-stubs/pull/2119](https://github.com/typeddjango/django-stubs/pull/2119)
- 5.0: Update `django.forms.forms` by
[@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in
[https://github.com/typeddjango/django-stubs/pull/2122](https://github.com/typeddjango/django-stubs/pull/2122)
- 5.0: Update `django.contrib.gis.db.backends.sqatialite.schema` by
[@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in
[https://github.com/typeddjango/django-stubs/pull/2123](https://github.com/typeddjango/django-stubs/pull/2123)
- Improve types in DB backend `schema` modules by
[@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in
[https://github.com/typeddjango/django-stubs/pull/2124](https://github.com/typeddjango/django-stubs/pull/2124)
- 5.0: Update `django.contrib.messages.test` by
[@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in
[https://github.com/typeddjango/django-stubs/pull/2126](https://github.com/typeddjango/django-stubs/pull/2126)
- \[pre-commit.ci] pre-commit autoupdate by
[@&#8203;pre-commit-ci](https://github.com/pre-commit-ci) in
[https://github.com/typeddjango/django-stubs/pull/2129](https://github.com/typeddjango/django-stubs/pull/2129)
- More pre-commit checks by
[@&#8203;sobolevn](https://github.com/sobolevn) in
[https://github.com/typeddjango/django-stubs/pull/2132](https://github.com/typeddjango/django-stubs/pull/2132)
- Bump django from 5.0.5 to 5.0.6 by
[@&#8203;dependabot](https://github.com/dependabot) in
[https://github.com/typeddjango/django-stubs/pull/2135](https://github.com/typeddjango/django-stubs/pull/2135)
- 5.0: Update `django.contrib.contenttypes.prefetch` by
[@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in
[https://github.com/typeddjango/django-stubs/pull/2115](https://github.com/typeddjango/django-stubs/pull/2115)
- 5.0: Update `django.contrib.admin.widgets` by
[@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in
[https://github.com/typeddjango/django-stubs/pull/2105](https://github.com/typeddjango/django-stubs/pull/2105)
- 5.0: Update `django.contrib.contenttypes.fields.GenericForeignKey`
methods by [@&#8203;saJaeHyukc](https://github.com/saJaeHyukc)
in
[https://github.com/typeddjango/django-stubs/pull/2137](https://github.com/typeddjango/django-stubs/pull/2137)
- Relax typing of `backend` in `django.contrib.auth` (`ModelBackend` ->
`BaseBackend`) by [@&#8203;tony](https://github.com/tony) in
[https://github.com/typeddjango/django-stubs/pull/2141](https://github.com/typeddjango/django-stubs/pull/2141)
- fix: UserAdmin accepts AbstractUser by
[@&#8203;vadimshvetsov](https://github.com/vadimshvetsov) in
[https://github.com/typeddjango/django-stubs/pull/2139](https://github.com/typeddjango/django-stubs/pull/2139)
- 4.2.8: Update `Query.resolve_lookup_value()` parameters by
[@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in
[https://github.com/typeddjango/django-stubs/pull/2136](https://github.com/typeddjango/django-stubs/pull/2136)
- Increase priority of mypy internal Django settings import by
[@&#8203;intgr](https://github.com/intgr) in
[https://github.com/typeddjango/django-stubs/pull/2127](https://github.com/typeddjango/django-stubs/pull/2127)
- Fix 'Import cycle from Django settings module' errors function context
by [@&#8203;intgr](https://github.com/intgr) in
[https://github.com/typeddjango/django-stubs/pull/2142](https://github.com/typeddjango/django-stubs/pull/2142)
- Adjust priority of Django settings import again by
[@&#8203;intgr](https://github.com/intgr) in
[https://github.com/typeddjango/django-stubs/pull/2143](https://github.com/typeddjango/django-stubs/pull/2143)
- 5.0: Update `django.forms.models` by
[@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in
[https://github.com/typeddjango/django-stubs/pull/2146](https://github.com/typeddjango/django-stubs/pull/2146)
- Add typing of `django.db.migrations.autodetector` by
[@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in
[https://github.com/typeddjango/django-stubs/pull/2149](https://github.com/typeddjango/django-stubs/pull/2149)
- 5.0: Update `django.db.models.enums` by
[@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in
[https://github.com/typeddjango/django-stubs/pull/2148](https://github.com/typeddjango/django-stubs/pull/2148)
- 5.0: Update `django.forms.widgets` by
[@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in
[https://github.com/typeddjango/django-stubs/pull/2147](https://github.com/typeddjango/django-stubs/pull/2147)
- Add GitHub actions release workflow for `django-stubs-ext` by
[@&#8203;flaeppe](https://github.com/flaeppe) in
[https://github.com/typeddjango/django-stubs/pull/2150](https://github.com/typeddjango/django-stubs/pull/2150)
- 5.0: Update `django.db.models.field.related` by
[@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in
[https://github.com/typeddjango/django-stubs/pull/2151](https://github.com/typeddjango/django-stubs/pull/2151)
- Bump pre-commit from 3.7.0 to 3.7.1 by
[@&#8203;dependabot](https://github.com/dependabot) in
[https://github.com/typeddjango/django-stubs/pull/2155](https://github.com/typeddjango/django-stubs/pull/2155)
- Fix `TextChoices.__new__()` parameter type by
[@&#8203;mvaled](https://github.com/mvaled) in
[https://github.com/typeddjango/django-stubs/pull/2156](https://github.com/typeddjango/django-stubs/pull/2156)
- Ensure ManyToManyField related managers supports renamed imports by
[@&#8203;flaeppe](https://github.com/flaeppe) in
[https://github.com/typeddjango/django-stubs/pull/2153](https://github.com/typeddjango/django-stubs/pull/2153)
- 5.0: Update `django.contrib.gis.db.backends.postgis.operations` by
[@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in
[https://github.com/typeddjango/django-stubs/pull/2138](https://github.com/typeddjango/django-stubs/pull/2138)
- 5.0: Update `django.db.models.fields.reverse_related` by
[@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in
[https://github.com/typeddjango/django-stubs/pull/2158](https://github.com/typeddjango/django-stubs/pull/2158)
- 5.0: Update `django.db.models.field`: add `generated` attribute to
model fields by
[@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in
[https://github.com/typeddjango/django-stubs/pull/2152](https://github.com/typeddjango/django-stubs/pull/2152)
- 5.0: Update `django.db.models.sql.datastructures` by
[@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in
[https://github.com/typeddjango/django-stubs/pull/2159](https://github.com/typeddjango/django-stubs/pull/2159)
- 5.0: Update `django.db.models.query` by
[@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in
[https://github.com/typeddjango/django-stubs/pull/2160](https://github.com/typeddjango/django-stubs/pull/2160)
- \[pre-commit.ci] pre-commit autoupdate by
[@&#8203;pre-commit-ci](https://github.com/pre-commit-ci) in
[https://github.com/typeddjango/django-stubs/pull/2161](https://github.com/typeddjango/django-stubs/pull/2161)
- 5.0: Update `django.db.models.sql.compiler` by
[@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in
[https://github.com/typeddjango/django-stubs/pull/2166](https://github.com/typeddjango/django-stubs/pull/2166)
- 5.0: Update `django.db.models.functions.datetime` by
[@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in
[https://github.com/typeddjango/django-stubs/pull/2167](https://github.com/typeddjango/django-stubs/pull/2167)
- 5.0: Update `django.forms.formsets` by
[@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in
[https://github.com/typeddjango/django-stubs/pull/2145](https://github.com/typeddjango/django-stubs/pull/2145)
- 5.0: Update `django.db.models.query_utils` by
[@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in
[https://github.com/typeddjango/django-stubs/pull/2165](https://github.com/typeddjango/django-stubs/pull/2165)
- Bump pytest from 8.2.0 to 8.2.1 by
[@&#8203;dependabot](https://github.com/dependabot) in
[https://github.com/typeddjango/django-stubs/pull/2169](https://github.com/typeddjango/django-stubs/pull/2169)
- 5.0: Update `django.db.models.functions.datetime.Now` by
[@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in
[https://github.com/typeddjango/django-stubs/pull/2173](https://github.com/typeddjango/django-stubs/pull/2173)
- 5.0: Update `django.db.models.sql.query.Query` by
[@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in
[https://github.com/typeddjango/django-stubs/pull/2172](https://github.com/typeddjango/django-stubs/pull/2172)
- 5.0: Update `django.db.models.field.related_descriptors` by
[@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in
[https://github.com/typeddjango/django-stubs/pull/2157](https://github.com/typeddjango/django-stubs/pull/2157)
- 5.0: Update django.db.models.constraints.UniqueConstraint by
[@&#8203;steve148](https://github.com/steve148) in
[https://github.com/typeddjango/django-stubs/pull/2175](https://github.com/typeddjango/django-stubs/pull/2175)
- 5.0: Update `django.db.models.expressions` by
[@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in
[https://github.com/typeddjango/django-stubs/pull/2176](https://github.com/typeddjango/django-stubs/pull/2176)
- Add `BaseConstraint.get_violation_error_message()` by
[@&#8203;q0w](https://github.com/q0w) in
[https://github.com/typeddjango/django-stubs/pull/2178](https://github.com/typeddjango/django-stubs/pull/2178)
- Fix signature of Choices member creation, add `assert_type` test
cases, run `pyright` by
[@&#8203;Viicos](https://github.com/Viicos) in
[https://github.com/typeddjango/django-stubs/pull/2162](https://github.com/typeddjango/django-stubs/pull/2162)
- `AbstractBaseSession`: Use model fields for subclassed cases by
[@&#8203;tony](https://github.com/tony) in
[https://github.com/typeddjango/django-stubs/pull/2180](https://github.com/typeddjango/django-stubs/pull/2180)
- Migrate 'test_conf.yml' to 'assert_type' tests by
[@&#8203;flaeppe](https://github.com/flaeppe) in
[https://github.com/typeddjango/django-stubs/pull/2182](https://github.com/typeddjango/django-stubs/pull/2182)
- Don't crash when inspecting classes loaded from cache by
[@&#8203;flaeppe](https://github.com/flaeppe) in
[https://github.com/typeddjango/django-stubs/pull/2185](https://github.com/typeddjango/django-stubs/pull/2185)
- Formset get_queryset() returns QuerySet by
[@&#8203;MrkGrgsn](https://github.com/MrkGrgsn) in
[https://github.com/typeddjango/django-stubs/pull/2174](https://github.com/typeddjango/django-stubs/pull/2174)
- Prepare for a release `5.0.1` by
[@&#8203;flaeppe](https://github.com/flaeppe) in
[https://github.com/typeddjango/django-stubs/pull/2183](https://github.com/typeddjango/django-stubs/pull/2183)

#### New Contributors

- [@&#8203;meshy](https://github.com/meshy) made their first
contribution in
[https://github.com/typeddjango/django-stubs/pull/1913](https://github.com/typeddjango/django-stubs/pull/1913)
- [@&#8203;bshelkhonov](https://github.com/bshelkhonov) made
their first contribution in
[https://github.com/typeddjango/django-stubs/pull/2108](https://github.com/typeddjango/django-stubs/pull/2108)
- [@&#8203;vadimshvetsov](https://github.com/vadimshvetsov)
made their first contribution in
[https://github.com/typeddjango/django-stubs/pull/2139](https://github.com/typeddjango/django-stubs/pull/2139)
- [@&#8203;mvaled](https://github.com/mvaled) made their first
contribution in
[https://github.com/typeddjango/django-stubs/pull/2156](https://github.com/typeddjango/django-stubs/pull/2156)
- [@&#8203;steve148](https://github.com/steve148) made their
first contribution in
[https://github.com/typeddjango/django-stubs/pull/2175](https://github.com/typeddjango/django-stubs/pull/2175)

**Full Changelog**:
https://github.com/typeddjango/django-stubs/compare/5.0.0...5.0.1

###
[`v5.0.1`](https://github.com/typeddjango/django-stubs/releases/tag/5.0.1)

[Compare
Source](https://github.com/typeddjango/django-stubs/compare/5.0.0...5.0.1)

#### Headline changes

- Support for Django 4.1 have been dropped by
[@&#8203;sobolevn](https://github.com/sobolevn) in
[https://github.com/typeddjango/django-stubs/pull/2133](https://github.com/typeddjango/django-stubs/pull/2133)
- A new extra, `django-stubs[oracle]`, was added by
[@&#8203;sobolevn](https://github.com/sobolevn) in
[https://github.com/typeddjango/django-stubs/pull/2131](https://github.com/typeddjango/django-stubs/pull/2131)
- Remove QuerySet alias hacks via PEP 696 TypeVar defaults. All usages
of `QuerySetAny` and `ValuesQuerySet` can now be replaced with simple
`QuerySet` by [@&#8203;intgr](https://github.com/intgr) in
[https://github.com/typeddjango/django-stubs/pull/2104](https://github.com/typeddjango/django-stubs/pull/2104)

[More details in this
announcement](https://github.com/typeddjango/django-stubs/discussions/2194)

#### What's Changed

- 5.0: Update `django.contrib.admin.views` and `django.forms.forms.Form`
metaclass by [@&#8203;sudosubin](https://github.com/sudosubin)
in
[https://github.com/typeddjango/django-stubs/pull/2079](https://github.com/typeddjango/django-stubs/pull/2079)
- Fix IndexError for custom queryset managers by
[@&#8203;meshy](https://github.com/meshy) in
[https://github.com/typeddjango/django-stubs/pull/1913](https://github.com/typeddjango/django-stubs/pull/1913)
- 5.0: Update `django.db.models.lookups` by
[@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in
[https://github.com/typeddjango/django-stubs/pull/2103](https://github.com/typeddjango/django-stubs/pull/2103)
- 5.0: Update `django.db.backends.utils` by
[@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in
[https://github.com/typeddjango/django-stubs/pull/2102](https://github.com/typeddjango/django-stubs/pull/2102)
- 5.0: Update `django.forms.field.Field` by
[@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in
[https://github.com/typeddjango/django-stubs/pull/2107](https://github.com/typeddjango/django-stubs/pull/2107)
- 5.0: Update `django.contrib.messages.storage.cookie` by
[@&#8203;saJaeHyukc](https://github.com/saJaeHyukc) in
[https://github.com/typeddjango/django-stubs/pull/2106](https://github.com/typeddjango/django-stubs/pull/210

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://github.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4xMjkuMiIsInVwZGF0ZWRJblZlciI6IjM4LjEyOS4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJyZW5vdmF0ZSJdfQ==-->

Co-authored-by: descope[bot] <107609351+descope[bot]@users.noreply.github.com>
  • Loading branch information
descope[bot] authored Nov 5, 2024
1 parent 99b195a commit aad3920
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ isort = "5.13.0"
python-dotenv = "1.0.1"
tox = "4.22.0"
django-debug-toolbar = "4.4.6"
django-stubs = "4.2.7"
django-stubs = "5.1.0"

# Authorized and unauthorized licenses in LOWER CASE
[tool.liccheck]
Expand Down

0 comments on commit aad3920

Please sign in to comment.