-
-
Notifications
You must be signed in to change notification settings - Fork 500
Closed
Description
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 -
django.contrib.postgres.TrigramStrictWordSimilarity
andTrigramStrictWordDistance
(and lookup?) (Various fixes for Django 4.2 #1536) - New
encoder
parameter fordjango.utils.html.json_script
(Various fixes for Django 4.2 #1536) -
django.forms.ModelForm
now accepts the newMeta
optionformfield_callback
to customize form fields. (Various fixes for Django 4.2 #1536) -
django.forms.models.modelform_factory
respectsformfield_callback
attribute (Various fixes for Django 4.2 #1536) - New
KT
expression fordjango.db.models.JSONField
(Various fixes for Django 4.2 #1536) -
F
expression that outputBooleanField
can now be negated (Various fixes for Django 4.2 #1536) -
django.contrib.gis.gdal.GDALRaster
now supportspathlib.Path
(Implement GDAL-related updates in Django 4.2 #1525) -
django.contrib.gis.models.functions.IsEmpty
expression (and lookup?) (Implement GDAL-related updates in Django 4.2 #1525) -
django.contrib.gis.models.functions.FromWKB
andFromWKT
functions (Implement GDAL-related updates in Django 4.2 #1525) -
django.test.RequestFactory
,AsyncRequestFactory
,Client
, andAsyncClient
classes now support theheaders
parameter (Add new headers parameter to test classes #1529) - Comments on columns and tables:
django.db.models.Field.db_comment
,django.db.models.Options.db_table_comment
&django.db.migrations.opertions.AlterModelTableComment
- New storage
django.core.files.storage.InMemoryStorage
- Custom file storages and related changes
- New
django.contrib.auth.forms.BaseUserCreationForm
- New
django.contrib.sitemaps.Sitemap.get_languages_for_item()
(Add new method to Sitemap #1527) - New
django.contrib.staticfiles.storage.ManifestStaticFilesStorage.manifest_hash
andsupport_js_module_import_aggregation
(Add ManifestStaticFilesStorage new parameters #1528) - New
robust
argument fordjango.db.transaction.on_commit
. - New async methods for
Model
:adelete
,arefresh_from_db
,asave
- New async methods for related managers:
aadd
,aclear
,aremove
,aset
-
StreamingHttpResponse
now supports async iterators when Django is served via ASGI - New
django.utils.http.content_disposition_header
- Dropping
DatabaseFeatures.allows_group_by_pk
(Implement Django 4.2 deprecations #1523) - Removed undocumented
django.http.multipartparser.parse_header
(Implement Django 4.2 deprecations #1523) - The
alias
argument forExpression.get_group_by_cols()
is removed. (Implement Django 4.2 deprecations #1523) - The undocumented
negated
parameter of theExists
expression is removed. (Implement Django 4.2 deprecations #1523) - The
is_summary
argument of the undocumentedQuery.add_annotation()
method is removed. (Implement Django 4.2 deprecations #1523)
intgr, jose-reveni and akshetpandey
Metadata
Metadata
Assignees
Labels
No labels