django-stubs
django-stubs copied to clipboard
Django 4.2 Tracking Issue
This is a tracking issue for changes that are needed for Django 4.2, based on release notes.
- [ ] Support for psycopg3 (
django.db.backends.postgresql.psycopg_any
) - [ ] Registration lookups on
Field
instances - [ ]
django.contrib.postgres
arrayfield.overlap
lookup now supportsvalues
andvalues_list
- [ ] (?)
django.db.models.query.QuerySet.prefetch_related
now supportsPrefetch
objects with sliced querysets - [x]
django.contrib.postgres.TrigramStrictWordSimilarity
andTrigramStrictWordDistance
(and lookup?) (#1536) - [x] New
encoder
parameter fordjango.utils.html.json_script
(#1536) - [x]
django.forms.ModelForm
now accepts the newMeta
optionformfield_callback
to customize form fields. (#1536) - [x]
django.forms.models.modelform_factory
respectsformfield_callback
attribute (#1536) - [x] New
KT
expression fordjango.db.models.JSONField
(#1536) - [x]
F
expression that outputBooleanField
can now be negated (#1536) - [x]
django.contrib.gis.gdal.GDALRaster
now supportspathlib.Path
(#1525) - [x]
django.contrib.gis.models.functions.IsEmpty
expression (and lookup?) (#1525) - [x]
django.contrib.gis.models.functions.FromWKB
andFromWKT
functions (#1525) - [x]
django.test.RequestFactory
,AsyncRequestFactory
,Client
, andAsyncClient
classes now support theheaders
parameter (#1529) - [x] Comments on columns and tables:
django.db.models.Field.db_comment
,django.db.models.Options.db_table_comment
&django.db.migrations.opertions.AlterModelTableComment
- [x] New storage
django.core.files.storage.InMemoryStorage
- [x] Custom file storages and related changes
- [x] New
django.contrib.auth.forms.BaseUserCreationForm
- [x] New
django.contrib.sitemaps.Sitemap.get_languages_for_item()
(#1527) - [x] New
django.contrib.staticfiles.storage.ManifestStaticFilesStorage.manifest_hash
andsupport_js_module_import_aggregation
(#1528) - [x] New
robust
argument fordjango.db.transaction.on_commit
. - [x] New async methods for
Model
:adelete
,arefresh_from_db
,asave
- [x] New async methods for related managers:
aadd
,aclear
,aremove
,aset
- [x]
StreamingHttpResponse
now supports async iterators when Django is served via ASGI - [x] New
django.utils.http.content_disposition_header
- [x] Dropping
DatabaseFeatures.allows_group_by_pk
(#1523) - [x] Removed undocumented
django.http.multipartparser.parse_header
(#1523) - [x] The
alias
argument forExpression.get_group_by_cols()
is removed. (#1523) - [x] The undocumented
negated
parameter of theExists
expression is removed. (#1523) - [x] The
is_summary
argument of the undocumentedQuery.add_annotation()
method is removed. (#1523)
This is done in the same style as #1493, reading release notes.
Also, I marked with (?) the few new features that I’m unsure if they mean any update in this project or not. I’ll try to go through it in details in the next few days and correct it.
Finally, I’ll try to go through the list to mark what’s already done.
Thank you! 👍
@Alexerson great work! 👍