... port issues such as import loops. New method on Field subclasses To help power both schema migrations and to enable easier addition of composite keys in future releases of Django, the Field API now has a new required method: deconstruct() . This method t ... The problem with this approach was that after the first method call, you'd get back a QuerySet instance and couldn't call additional custom manager methods. Though not documented, it was common to work around this issue by creating a custom QuerySet so ... owser time zone, which could result in saving the wrong value when it didn't match the current time zone on the server. In addition, the widgets now display a help message when the browser and server time zone are different, to clarify how the value inse ... ... bundled with Django). With test discovery, tests can be located in any module whose name matches the pattern test*.py . In addition, the test labels provided to ./manage.py test to nominate specific tests to run must now be full Python dotted paths (or d ... sn't ordered and there is more than one ordered value to compare against. Added earliest() for symmetry with latest() . In addition to year , month and day , the ORM now supports hour , minute and second lookups. Django now wraps all PEP 249 exceptions. ... lue. Passwords will be upgraded to use the new iteration count as necessary. Backwards incompatible changes in 1.6 警告 In addition to the changes outlined in this section, be sure to review the deprecation plan for any features that have been removed. I ... ... lues from the newly added UUIDField ( #25019 ). Added a system check warning if the old TEMPLATE_* settings are defined in addition to the new TEMPLATES setting. Fixed QuerySet.raw() so InvalidQuery is not raised when using the db_column name of a Foreig ... ... r these older Internet Explorer versions has been removed, and the Vary header is no longer stripped from the response. In addition, modifications to the Cache-Control header for all Internet Explorer requests with a Content-Disposition header have also ... ... r these older Internet Explorer versions has been removed, and the Vary header is no longer stripped from the response. In addition, modifications to the Cache-Control header for all Internet Explorer requests with a Content-Disposition header have also ... ... ... r these older Internet Explorer versions has been removed, and the Vary header is no longer stripped from the response. In addition, modifications to the Cache-Control header for all Internet Explorer requests with a Content-Disposition header have also ... ... TED_PYTZ 設定は、4.x リリースサイクル中に pytz の継続的な使用を許可します。この設定は Django 5.0 で削除される予定です。 In addition, a pytz_deprecation_shim package, created by the zoneinfo author, can be used to assist with the migration from pytz . Thi ... ssage. This allows custom error messages to use the %(value)s placeholder. BaseFormSet now renders non-form errors with an additional class of nonform to help distinguish them from form-specific errors. BaseFormSet now allows customizing the widget used ... eteView now uses FormMixin , allowing you to provide a Form subclass, with a checkbox for example, to confirm deletion. In addition, this allows DeleteView to function with django.contrib.messages.views.SuccessMessageMixin . In accordance with FormMixin ... ... cated in favor of a class-based test runner, django.contrib.gis.tests.GeoDjangoTestSuiteRunner , added in this release. In addition, the GeoDjango test suite is now included when running the Django test suite with runtests.py and using spatial database b ... ... e. The operators supported are == , != , < , > , <= , >= , in and not in , all of which work like the Python operators, in addition to and , or and not , which were already supported. Also, filters may now be used in the if expression. For example: < div ... ified, this option causes the test runner to exit after encountering a failure instead of continuing with the test run. In addition, the handling of Ctrl-C during a test run has been improved to trigger a graceful exit from the test run that reports deta ... quired if you have manually created a database connection using DatabaseWrapper() from your database backend of choice. In addition to the change in structure, Django 1.2 removes the special handling for the built-in database backends. All database backe ... 2026年10月08日