... formalized API for Model._meta , providing an officially supported way to retrieve fields and filter fields based on their attributes . The Model._meta object has been part of Django since the days of pre-0.96 "Magic Removal" -- it just wasn't an official ... has_module_permission() method to allow limiting access to the module on the admin index page. InlineModelAdmin now has an attribute show_change_link that supports showing a link to an inline object's change form. Use the new django.contrib.admin.RelatedO ... jango.contrib.sessions Session cookie is now deleted after flush() is called. django.contrib.sitemaps The new Sitemap.i18n attribute allows you to generate a sitemap based on the LANGUAGES setting. django.contrib.sites get_current_site() will now lookup t ... ... 要な場合に Content-Security-Policy HTTP ヘッダーを有効にすることができるようになりました。 The new InlineModelAdmin.classes attribute allows specifying classes on inline fieldsets. Inlines with a collapse class will be initially collapsed and their header ... f this geometry. Added the GEOSGeometry.covers() binary predicate. Added the GDALBand.statistics() method and mean and std attributes. Added support for the MakeLine aggregate and GeoHash function on SpatiaLite. Added support for the Difference , Intersec ... s now served using django.contrib.staticfiles if installed. The <input> tag rendered by CharField now includes a minlength attribute if the field has a min_length . Required form fields now have the required HTML attribute. Set the new Form.use_required_a ... ... ossible to omit models.py entirely if an application doesn't have any models. Applications can be relabeled with the label attribute of application configurations, to work around label conflicts. The name of applications can be customized in the admin wit ... new required method: deconstruct() . This method takes no arguments, and returns a tuple of four items: name : The field's attribute name on its parent model, or None if it is not part of a model path : A dotted, Python path to the class of this field, in ... age for more details. マイナーな機能 django.contrib.admin You can now implement site_header , site_title , and index_title attributes on a custom AdminSite in order to easily change the admin site's page title and header text. No more needing to override ... ... 49 exceptions. The default widgets for EmailField , URLField , IntegerField , FloatField and DecimalField use the new type attributes available in HTML5 ( type='email' , type='url' , type='number' ). Note that due to erratic support of the number input ty ... s now interpolated with its object 's __dict__ . HttpResponseRedirect and HttpResponsePermanentRedirect now provide an url attribute (equivalent to the URL the response will redirect to). The MemcachedCache cache backend now uses the latest pickle protoco ... l available. Added SuccessMessageMixin which provides a success_message attribute for FormView based classes. Added the django.db.models.ForeignKey.db_constraint and django.db.models.ManyToManyField.db_co ... ... s displaying model fields and model attributes. While the former were correctly escaped, the latter were not. Thus untrusted content could be injected into the admin, p ... resenting an exploitation vector for XSS attacks. In this vulnerability, every model attribute used in readonly_fields that is not an actual model field (e.g. a property ) will fail to be escaped even if that attribut ... ... mins() , mail_managers() , the EmailMessage constructor, and EmailMessage.send() . Support for the EmailMessage.connection attribute will also be removed. Directly creating instances of the smtp.EmailBackend class will become unsupported, and the class do ... lated() without arguments will raise TypeError . QuerySet.select_related() will raise TypeError if passed True rather than AttributeError . ModelAdmin will raise ValueError if subclassed with its list_select_related attribute set to True . ModelAdmin will ... t for unpacking or indexing the dictionary values of the ModelAdmin.get_actions() 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 ... ... ョン回数が 320,000 から 390,000 に増加しました。 The RemoteUserBackend.configure_user() method now allows synchronizing user attributes with attributes in a remote system such as an LDAP directory. django.contrib.gis The new GEOSGeometry.make_valid() method ... sionConstraint now supports covering exclusion constraints using SP-GiST indexes on PostgreSQL 14+. The new default_bounds attribute of DateTimeRangeField and DecimalRangeField allows specifying bounds for list and tuple inputs. ExclusionConstraint now al ... backends can now specify the minimum required version of the database using the DatabaseFeatures.minimum_database_version attribute which is a tuple (e.g. (10, 0) means "10.0"). If a minimum version is specified, backends must also implement DatabaseWrap ... ... SessionBase now supports boolean evaluation via __bool__() . CSP The new csp_nonce_attr template tag renders the CSP nonce attribute on <script> and <link> elements, or renders a Media object's assets with the nonce applied, when the csp() context process ... ddleware is enabled with CSP.NONCE in a CSP policy but django.template.context_processors.csp is not configured. CSP nonce attributes are now added on <script> , <style> , and <link> elements in admin templates and all built-in templates when the csp() co ... fined but does not include a 'default' entry. フォーム The new asset object Stylesheet is available for adding custom HTML-attributes to stylesheet links in form media. See paths as objects for more details. The new constant django.db.models.fields.BLANK_ ... ... umeration types for more details and examples. マイナーな機能 django.contrib.admin Added support for the admin_order_field attribute on properties in ModelAdmin.list_display . The new ModelAdmin.get_inlines() method allows specifying the inlines based on ... されました。 jQuery のバージョンが 3.3.1 から 3.4.1 にアップグレードされました。 django.contrib.auth The new reset_url_token attribute in PasswordResetConfirmView allows specifying a token parameter displayed as a component of password reset URLs. Added Bas ... ckends. Added get_user_permissions() method to mirror the existing get_group_permissions() method. Added HTML autocomplete attribute to widgets of username, email, and password fields in django.contrib.auth.forms for better interaction with browser passwo ... ... ntains the model class for each model is added to the AdminSite.each_context() method. The new ModelAdmin.search_help_text attribute allows specifying a descriptive text for the search box. The InlineModelAdmin.verbose_name_plural attribute now fallbacks ... パスワードハッシュに対するデフォルトのイテレーション回数が 260,000 から 320,000 に増加しました。 The new LoginView.next_page attribute and get_default_redirect_url() method allow customizing the redirect after login. django.contrib.gis Added support for Spa ... rors. BaseFormSet now allows customizing the widget used when deleting forms via can_delete by setting the deletion_widget attribute or overriding get_deletion_widget() method. 国際化 (internationalization) Added support and translations for the Malay lan ... 2026年10月08日