Django-stubs

Latest version: v5.1.3

Safety actively analyzes 714815 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 10

5.1.3

What's Changed

* Support mypy1.15 by sobolevn in https://github.com/typeddjango/django-stubs/pull/2502
* Support Django5.1.5 by sobolevn in https://github.com/typeddjango/django-stubs/pull/2482
* Support Django5.1.6 by sobolevn in https://github.com/typeddjango/django-stubs/pull/2503
* Fix `ContentType` model fields to be infered as `Any`, refs 2446 by sobolevn in https://github.com/typeddjango/django-stubs/pull/2483
* Fix `deprecated` based on the review by sobolevn in https://github.com/typeddjango/django-stubs/pull/2485
* Fix error with `null=True` and `Any` type param for `Field` types by sobolevn in https://github.com/typeddjango/django-stubs/pull/2492
* Fix types for `TestCase.assertJSON{Not,}Equal` by nickstenning in https://github.com/typeddjango/django-stubs/pull/2497
* DomainNameValidator types by HansAarneLiblik in https://github.com/typeddjango/django-stubs/pull/2498

New Contributors
* nickstenning made their first contribution in https://github.com/typeddjango/django-stubs/pull/2497

**Full Changelog**: https://github.com/typeddjango/django-stubs/compare/5.1.2...5.1.3

5.1.2

What's Changed
* Update enums to reflect typing spec changes by hauntsaninja in https://github.com/typeddjango/django-stubs/pull/2426
* Document compatibility considerations by khink in https://github.com/typeddjango/django-stubs/pull/2430
* fix `.values_list` returns incorrect type for field with same name when selected from related model by Niicck in https://github.com/typeddjango/django-stubs/pull/2431
* Bump django to 5.1.3 by sobolevn in https://github.com/typeddjango/django-stubs/pull/2436
* Fix typing of related manager methods by ngnpope in https://github.com/typeddjango/django-stubs/pull/2439
* Fix signature of `ModelAdmin.construct_change_message` by youtux in https://github.com/typeddjango/django-stubs/pull/2444
* Update django to 5.1.4, drop black by sobolevn in https://github.com/typeddjango/django-stubs/pull/2455
* Extend _AllLimitChoicesTo by H4rryK4ne in https://github.com/typeddjango/django-stubs/pull/2456
* Marking default_error_messages as a ClassVar by delfick in https://github.com/typeddjango/django-stubs/pull/2457
* Add deprecated decorators for multiple classes and methods by JaeHyuckSa in https://github.com/typeddjango/django-stubs/pull/2458
* Update `contrib.admin.options.ModelAdmin` by JaeHyuckSa in https://github.com/typeddjango/django-stubs/pull/2422
* Update `contrib.gis.gdal.geometries` by JaeHyuckSa in https://github.com/typeddjango/django-stubs/pull/2460
* base.pyi: use base class HttpResponseBase by dnet in https://github.com/typeddjango/django-stubs/pull/2459
* Update `contrib.admin.models.LogEntryManager` by JaeHyuckSa in https://github.com/typeddjango/django-stubs/pull/2423
* Update mypy to 1.14 by sobolevn in https://github.com/typeddjango/django-stubs/pull/2468
* Add py.typed file for pylance support by ashwanthbalakrishnan5 in https://github.com/typeddjango/django-stubs/pull/2470
* Fix Signal._live_receivers typing by mdalp in https://github.com/typeddjango/django-stubs/pull/2475
* Add type-checking to Manager.acreate by vitosamson in https://github.com/typeddjango/django-stubs/pull/2477

New Contributors
* hauntsaninja made their first contribution in https://github.com/typeddjango/django-stubs/pull/2426
* khink made their first contribution in https://github.com/typeddjango/django-stubs/pull/2430
* Niicck made their first contribution in https://github.com/typeddjango/django-stubs/pull/2431
* youtux made their first contribution in https://github.com/typeddjango/django-stubs/pull/2444
* H4rryK4ne made their first contribution in https://github.com/typeddjango/django-stubs/pull/2456
* dnet made their first contribution in https://github.com/typeddjango/django-stubs/pull/2459
* ashwanthbalakrishnan5 made their first contribution in https://github.com/typeddjango/django-stubs/pull/2470
* mdalp made their first contribution in https://github.com/typeddjango/django-stubs/pull/2475
* vitosamson made their first contribution in https://github.com/typeddjango/django-stubs/pull/2477

**Full Changelog**: https://github.com/typeddjango/django-stubs/compare/5.1.1...5.1.2

5.1.1

New Contributors
* foarsitter made their first contribution in https://github.com/typeddjango/django-stubs/pull/2380
* sergei-maertens made their first contribution in https://github.com/typeddjango/django-stubs/pull/2414
* nijel made their first contribution in https://github.com/typeddjango/django-stubs/pull/2419

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

5.1.0

New Contributors
* RealOrangeOne made their first contribution in https://github.com/typeddjango/django-stubs/pull/2311
* ashm-dev made their first contribution in https://github.com/typeddjango/django-stubs/pull/2316
* craigds made their first contribution in https://github.com/typeddjango/django-stubs/pull/2342
* jkaikkosplk made their first contribution in https://github.com/typeddjango/django-stubs/pull/2345
* BradleyKirton made their first contribution in https://github.com/typeddjango/django-stubs/pull/2348
* richardebeling made their first contribution in https://github.com/typeddjango/django-stubs/pull/2374

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

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 flaeppe in https://github.com/typeddjango/django-stubs/pull/2283

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

5.0.3

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

New Contributors
* YPCrumble made their first contribution in https://github.com/typeddjango/django-stubs/pull/2177
* jwhitlock made their first contribution in https://github.com/typeddjango/django-stubs/pull/2233
* DongwookKim0823 made their first contribution in https://github.com/typeddjango/django-stubs/pull/2247
* savanto made their first contribution in https://github.com/typeddjango/django-stubs/pull/2256
* rafonseca made their first contribution in https://github.com/typeddjango/django-stubs/pull/2261
* joshuadavidthomas made their first contribution in https://github.com/typeddjango/django-stubs/pull/2266

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

Page 1 of 10

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.