... sly, a session could be created when anonymously accessing the django.contrib.auth.views.logout() view (provided it wasn't decorated with login_required() as done in the admin). This could allow an attacker to easily create many new session records by sen ... ... .contrib.auth.views.logout() view (provided it wasn't decorated with login_required() as done in the admin). This could allow an attacker to easily create many new session records by sen ... ... sing the django.contrib.auth.views.logout() view (provided it wasn't decorated with login_required() as done in the admin). This could allow an attacker to easily create many new session records by sen ... ... ccess other parts of the site. csp_override ( config)(view ) [ソース] Overrides the Content-Security-Policy header for the decorated view using directives in the same format as the SECURE_CSP setting. The config argument must be a mapping with the desired ... ded" ) csp_report_only_override ( config)(view ) [ソース] Overrides the Content-Security-Policy-Report-Only header for the decorated view using directives in the same format as the SECURE_CSP_REPORT_ONLY setting. Like csp_override() , the config argument ... ... inline and hidden references to admin fields ( #23431 ). The @deconstructible decorator now fails with a ValueError if the decorated object cannot automatically be imported ( #23418 ). Fixed a typo in an inlineformset_factory() error message that caused a ... ... e supports_defer set to True to use this feature. Otherwise, InvalidTask is raised. name [ソース] The name of the function decorated with task() . This name is not necessarily unique. using ( * , priority = None , backend = None , queue_name = None , run_ ... ... als import request_finished class MyAppConfig ( AppConfig ): ... def ready ( self ): # Implicitly connect signal receivers decorated with @receiver. from . import signals # Explicitly connect a signal handler. request_finished . connect ( signals . my_rec ... ... setting (now 'static/' ) in the default startproject template. The AdminSite method for the admin index view is no longer decorated with never_cache when accessed directly, rather than via the recommended AdminSite.urls property, or AdminSite.get_urls() ... ... ow using hashable objects, not only path strings, as long as those objects implement the __html__() method (typically when decorated with the html_safe() decorator). The new BoundField.use_fieldset and Widget.use_fieldset attributes help to identify widge ... ... 変換されます。 has_permission () [ソース] Returns a boolean denoting whether the current user has permission to execute the decorated view. By default, this returns the result of calling has_perms() with the list of permissions returned by get_permission_r ... 2026年10月08日