... alted_hmac() and django.core.signing.base64_hmac() will change from "sha1" to "sha256" . Calling QuerySet.select_related() without arguments will raise TypeError . QuerySet.select_related() will raise TypeError if passed True rather than AttributeError ... ll raise ValueError if its get_list_select_related() method returns True . Support for overriding ModelAdmin.get_actions() without the new action_location parameter will be removed. Support for unpacking or indexing the dictionary values of the ModelAdm ... ions() return value will be removed. Use Action attributes instead. Support for overriding ModelAdmin.get_action_choices() without the new action_location parameter will be removed. The django.db.transaction.savepoint() alias to django.db.transaction.sa ... ... olicy, blocking content that violates the defined directives. Content-Security-Policy-Report-Only : Reports CSP violations without blocking content, allowing for non-intrusive testing. Each policy is composed of one or more directives and their values, ... enforce a policy that has already been tested and verified. Use SECURE_CSP_REPORT_ONLY on its own to evaluate a new policy without disrupting site behavior. This mode does not block violations, it only logs them. It's useful for testing and monitoring, ... presents 'strict-dynamic' . Allows execution of scripts loaded by a trusted script (e.g., one with a valid nonce or hash), without needing 'unsafe-inline' . UNSAFE_EVAL Represents 'unsafe-eval' . Allows use of eval() and similar JavaScript functions. St ... ... 3.x. Django 1.4 の新機能 Support for time zones In previous versions, Django used "naive" date/times (that is, date/times without an associated time zone), leaving it up to each developer to interpret what a given date/time "really means". This can cau ... nit__.py settings.py urls.py If the same code is imported inconsistently (some places with the project prefix, some places without it), the imports will need to be cleaned up when switching to the new manage.py . Custom project and app templates The sta ... maintain compatibility with older browsers, this change means that you can use any HTML5 features you need in admin pages without having to lose HTML validity or override the provided templates to change the doctype. List filters in admin interface Pri ... ... n non-transactional databases or inside TransactionTestCase unless specifically requested . It is not advised to have apps without migrations depend on (have a ForeignKey or ManyToManyField to) apps with migrations. App-loading refactor Historically, Dj ... andling edge cases fell on the user. The new add_error() method allows adding errors to specific form fields from anywhere without having to worry about the details such as creating instances of django.forms.utils.ErrorList or dealing with Form.cleaned_ ... nto one using a space character to separate them. This is quite useful for indenting the content of a {% blocktrans %} tag without having the indentation characters end up in the corresponding entry in the .po file, which makes the translation process e ... ... 6-87890: Potential request forgery via spatial lookup byte values Spatial lookups accepted raster values provided as bytes without requiring them to be explicitly wrapped in GDALRaster . Although these values were opened through GDAL's in-memory virtual ... crumb was rendered on the admindocs model index page ( #37378 ). Fixed a regression in Django 6.1 where a Value expression without an explicit JSONField output field crashed or returned an incorrect result when used in a top-level JSONField in lookup on ... databases without native JSON support ( #37377 ). ... ... ue, for example changing a word in the documentation, the preferred way to provide the patch is using GitHub pull requests without a Trac ticket. See Working with Git and GitHub for more details on how to use pull requests. "Claiming" tickets In an open ... k on, or contact the developer working on the ticket to offer your help. If a ticket has been assigned for weeks or months without any activity, it's probably safe to reassign it to yourself. If a ticket hasn't been approved yet, join the conversation. ... intenance burden and slow down meaningful progress. Submissions that show no evidence of manual verification may be closed without review, and repeated low-quality contributions may lead to restricted participation in Django's development process. With ... ... how" link. If a user doesn't have the add permission, the object-tools block on a model's changelist will now be rendered (without the add button). This makes it easier to add custom tools in this case. The LogEntry model now stores change messages in a ... ts a user from being able to log out. Added the optional backend argument to django.contrib.auth.login() to allow using it without credentials. The new LOGOUT_REDIRECT_URL setting controls the redirect of the django.contrib.auth.views.logout() view, if ... as_sql() methods of various expressions ( Func , When , Case , and OrderBy ) to allow database backends to customize them without mutating self , which isn't safe when using different database backends. See the arg_joiner and **extra_context parameters ... ... iled STARTTLS handshake could leave a partially-initialized connection that would subsequently be reused for sending email without encryption. This can occur with fail_silently=True , as used by send_mail() and BrokenLinkEmailsMiddleware , among others. ... zation UpdateCacheMiddleware and cache_page() decorator allowed responses to requests bearing an Authorization header (and without Cache-Control: public ) to be cached. To conform with the existing mechanism for constructing cache keys, responses to the ... ... Key or OneToOneField fields to perform unnecessary schema changes ( #37260 ). Fixed a bug in Django 6.1 where DecimalField without max_digits and decimal_places caused a crash when retrieving values on SQLite ( #37275 ). Fixed a regression in Django 6.1 ... that caused a crash when iterating a QuerySet of a model overriding Model.from_db() without the new fetch_mode keyword argument. Such overrides now work again, but are deprecated and should be updated to accept fet ... ... makemigrations and migrate ( #27089 ). Fixed the creation of ContentType and Permission objects for models of applications without migrations when calling the migrate command with no migrations to apply ( #27044 ). Included the already applied migration ... receivers to allow ContentType renaming to be performed on model rename ( #27100 ). Reallowed subclassing UserCreationForm without USERNAME_FIELD in Meta.fields ( #27111 ). Fixed a regression in model forms where model fields with a default that didn't ... 2026年10月08日