-
-
Notifications
You must be signed in to change notification settings - Fork 515
Open
Labels
good first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed
Description
This is a tracking issue for changes that will be needed for Django 5.0, based on in-development release notes.
EDIT: Please see #1493 (comment) for an up to date progress list.
(Collapsed original list that is now outdated)
- warnings in
django.utils.deprecation - admin facets -
ModelAdmin.show_facets,django.contrib.admin.ShowFacetsenum - form field groups -
BoundField.as_field_group(),django.forms.Field.template_name,django.forms.renderers.BaseRenderer.field_template_name - Database-computed default values -
db_defaultarg and attr on modelField -
django.contrib.admin.AdminSite.get_log_entries -
django.http.HttpRequest.auserfromAuthenticationMiddleware -
django.contrib.gis.db.models.functions.ClosestPoint -
django.contrib.postgres.constraints.ExclusionConstraint.violation_error_code -
choicesargs to formChoiceFieldand modelFieldsupportChoicesclasses directly. -
django.forms.URLFieldnewassume_schemearg -
QuerySet.update_or_createandaupdate_or_createnewcreate_defaultsarg - new
violation_error_codearg forBaseConstraint,CheckConstraint, andUniqueConstraint - new arg
error_messagesfordjango.core.paginator.Paginator.error_messages - new
Signal.asend()andSignal.asend_robust()methods - The
instanceargument of the undocumentedBaseModelFormSet.save_existing()method is renamed toobj. - The undocumented
django.contrib.admin.helpers.checkboxis removed. - The undocumented
Query.annotation_select_maskattribute is changed from a set of strings to an ordered list of strings. - Passing positional arguments name and violation_error_message to
BaseConstraintis deprecated in favor of keyword-only arguments. (Let's make them keyword-only in the stubs in 5.0.) -
requestis added to the signature ofModelAdmin.lookup_allowed(). Support for ModelAdmin subclasses that do not accept this argument is deprecated. - The
get_joining_columns()method ofForeignObjectandForeignObjectRelis deprecated. Starting with Django 6.0,django.db.models.sql.datastructures.Joinwill no longer fallback toget_joining_columns(). Subclasses should implementget_joining_fields()instead. - The undocumented
django.utils.baseconvmodule is removed. - The undocumented
django.utils.datetime_safemodule is removed. - The
extra_testsargument forDiscoverRunner.build_suite()andDiscoverRunner.run_tests()is removed. - The
USE_L10Nsetting is removed. - Support for
pytztimezones is removed. - The
is_dstargument is removed from:QuerySet.datetimes()django.utils.timezone.make_aware()django.db.models.functions.Trunc()django.db.models.functions.TruncSecond()django.db.models.functions.TruncMinute()django.db.models.functions.TruncHour()django.db.models.functions.TruncDay()django.db.models.functions.TruncWeek()django.db.models.functions.TruncMonth()django.db.models.functions.TruncQuarter()django.db.models.functions.TruncYear()
- The
django.contrib.gis.admin.GeoModelAdminandOSMGeoAdminclasses are removed. - [ ]The undocumented
BaseForm._html_output()method is removed. - The ability to return a
str, rather than aSafeString, when rendering anErrorDictandErrorListis removed. - The
SitemapIndexItem.__str__()method is removed. - The
nameargument ofdjango.utils.functional.cached_property()is removed. - The
opclassesargument ofdjango.contrib.postgres.constraints.ExclusionConstraintis removed. - The undocumented ability to pass
errors=NonetoSimpleTestCase.assertFormError()andassertFormsetError()is removed. -
django.contrib.sessions.serializers.PickleSerializeris removed. -
created=Trueis required in the signature ofRemoteUserBackend.configure_user()subclasses. - Support for logging out via GET requests in the
django.contrib.auth.views.LogoutViewanddjango.contrib.auth.views.logout_then_login()is removed. - The
django.utils.timezone.utcalias todatetime.timezone.utcis removed. - Passing a response object and a form/formset name to
SimpleTestCase.assertFormError()andassertFormSetError()is no longer allowed. - The
django.contrib.gis.admin.OpenLayersWidgetis removed. - The
django.contrib.auth.hashers.CryptPasswordHasheris removed. - Passing
nulls_first=Falseornulls_last=FalsetoExpression.asc()andExpression.desc()methods, and theOrderByexpression is no longer allowed.
intgr, basicdays, JaeHyuckSa and kolerorpawelad
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed