What's Changed
This is a re-release of django-stubs 5.0.3 with a minor fix:
Full Changelog: 5.0.3...5.0.4
Release notes for version 5.0.3
What's Changed
- Release workflow: publish
django-stubs-extbeforedjango-stubsby @flaeppe in #2188 - Migrate
apps/test_config.yml'assert_type' tests by @flaeppe in #2190 - Add
ManyToManyField.m2m_field_nameandModel._get_pk_valmethods by @YPCrumble in #2177 Lookupshould be a subtype ofExpressionby @mkurnikov in #2199- Update
django.db.models.functions: allowCombinableas parameter, addRoundfunction by @noamkush in #2195 - Add missing
django.core.management.utilsfunctions by @Viicos in #2200 - Improve
django.middlewarestubs by @Viicos in #2202 - Improve
django.httpstubs by @Viicos in #2201 - Tests: Migrate
db/models/test_constraints.ymlto 'assert_type' tests by @flaeppe in #2204 - Allow any function for admin's
displayandactiondecorators by @flaeppe in #2210 - Remove invalid re-export
django.forms.ChoiceWidgetby @asottile in #2207 - Model._meta.pk is non-None by @asottile in #2218
- update / create defaults are read-only Mapping by @asottile in #2216
- Add missing math.Random database function by @noamkush in #2222
- Make
ReverseManyToOneDescriptorgeneric over a model by @flaeppe in #2227 - Extract through table creation to separate method by @flaeppe in #2229
- Do many related manager creation during semantic analysis by @flaeppe in #2231
- Expand CheckRegistry.register as function (#2232) by @jwhitlock in #2233
- don't copy magic or private methods in from_queryset managers by @asottile in #2240
- Make plugin handle explicitly declared reverse descriptors for FKs by @flaeppe in #2230
- Expect a
QuerySetfor multiple defaults inMultipleObjectMixinby @flaeppe in #2191 - fix handling of explicit
objectsannotation by @asottile in #2241 - Add atomic_blocks to base DB wrapper by @palfrey in #2242
- walk mro for Field set type annotations by @asottile in #2244
- Add
serialized_aliasesparameter tosetup_databasesfunction indjango.test.utilsby @DongwookKim0823 in #2247 - use field annotations for values_list types by @asottile in #2248
- Improve types of
ConnectionProxyby @Viicos in #2246 - Add
get_template_tag_modulesfunction signature todjango.template.backends.djangoby @DongwookKim0823 in #2250 - add PlaceholderNode when deferring manager class hook by @asottile in #2228
- Update function signatures for
django.db.models.sql.Queryclass by @DongwookKim0823 in #2253 - Update
admin.sites._ViewTypebound to allowStreamingHttpResponseby @savanto in #2256 - Add
Options._get_fieldsby @Viicos in #2254 - Support inheriting ManyToManyField from an abstract model by @flaeppe in #2260
- Allow single generic param for Field in ForeignKey by @rafonseca in #2261
- Refactor: Unify plugin check for model type info by @flaeppe in #2263
- add
Pathtype argument to tuple returned byget_app_template_dirsby @joshuadavidthomas in #2266 - add missing type argument to
Paginatorby @joshuadavidthomas in #2271 - Update mypy to 1.11.0 by @sobolevn in #2269
- Check calls to filtering manager methods involving
ManyToManyFieldby @flaeppe in #2275 - Prepare for a release
5.0.3by @flaeppe in #2274 - lookup manager type via mro by @asottile in #2276
- Check model fields on filtering methods of queryset types by @flaeppe in #2277
- fill QuerySet generics using the manager's model type by @asottile in #2281
- convert as_manager hooks to base class hook by @asottile in #2282
New Contributors
- @YPCrumble made their first contribution in #2177
- @jwhitlock made their first contribution in #2233
- @DongwookKim0823 made their first contribution in #2247
- @savanto made their first contribution in #2256
- @rafonseca made their first contribution in #2261
- @joshuadavidthomas made their first contribution in #2266
Full Changelog: 5.0.2...5.0.3