... ask class Task [ソース] Represents a Task to be run in the background. Tasks should be defined using the task() decorator. Attributes of Task cannot be modified. See modifying Tasks for details. priority The priority of the Task . Priorities must be betwee ... ソース] Creates a new Task with modified defaults. The existing Task is left unchanged. using allows modifying the following attributes: priority backend queue_name run_after See modifying Tasks for usage examples. enqueue ( * args , ** kwargs ) [ソース] Enq ... [ソース] Contains context for the running Task . Context only passed to a Task if it was defined with takes_context=True . Attributes of TaskContext cannot be modified. task_result The TaskResult currently being run. attempt [ソース] The number of the curr ... ... ng the @display decorator has the advantage that it is now possible to use the @property decorator when needing to specify attributes on the custom method. Prior to this it was necessary to use the property() function instead after assigning the required a ... ble as they can be suggested by completion utilities in code editors. They are merely a convenience and still set the same attributes on the functions under the hood. マイナーな機能 django.contrib.admin ModelAdmin.search_fields now allows searching against ... expressions with a custom operator class. See Functional indexes for more details. django.contrib.sitemaps The new Sitemap attributes alternates , languages and x_default allow generating sitemap alternates to localized versions of your pages. django.contr ... ... ョン回数が 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 ... gument for modelformset_factory() and inlineformset_factory() allows preventing new objects creation. The js and css class attributes of Media now allow 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 widgets where its inputs should be grouped in a <fieldset> with a <legend> . The error_messages argument ... ... com/newspaper.css" media = "print" rel = "stylesheet" > Stylesheet objects New in Django 6.1. class Stylesheet ( href , ** attributes ) [ソース] Represents a stylesheet link. The rel attribute is set to "stylesheet" . The first parameter, href , is the str ... sheet file. See the section on paths for details on how to specify paths to these files. The optional keyword arguments, **attributes , are additional HTML attributes set on the rendered <link> tag. 使用例については、 オブジェクトとしてのパス を参照してくだ ... 定義したタプルです。ファイルのパスを指定する方法は パスの章 を参照してください。 Script オブジェクト class Script ( src , ** attributes ) [ソース] スクリプトファイルを表現します。 最初の引数 src は、スクリプトファイルへのパスを表す文字列です。 このパスの指定 ... ... he trans and blocktrans template tags using the new context keyword. Customizable SingleObjectMixin URLConf kwargs Two new attributes, pk_url_kwarg and slug_url_kwarg , have been added to SingleObjectMixin to enable the customization of URLconf keyword arg ... nnection does not directly reference the default DatabaseWrapper object anymore and is now a proxy to access that object's attributes. If you need to access the actual DatabaseWrapper object, use django.db.connections[DEFAULT_DB_ALIAS] instead. As part of ... er --nothreading option to disable the use of threading in the development server: django-admin.py runserver --nothreading Attributes disabled in markdown when safe mode set Prior to Django 1.4, attributes were included in any markdown output regardless of ... ... 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.RelatedOn ... rage. See the deprecation note about adding this argument to your custom storage classes. フォーム Form widgets now render attributes with a value of True or False as HTML5 boolean attributes. The new has_error() method allows checking if a specific error ... ... sult streaming for QuerySet.iterator() on SQLite. ジェネリックビュー (汎用ビュー) The new View.setup hook initializes view attributes before calling dispatch() . It allows mixins to set up instance attributes for reuse in child classes. 国際化 (internation ... ospection there. DiscoverRunner now skips the setup of databases not referenced by tests . URL The new ResolverMatch.route attribute stores the route of the matching URL pattern. バリデータ MaxValueValidator , MinValueValidator , MinLengthValidator , and M ... be removed in Django 3.1. The SimpleTestCase.allow_database_queries , TransactionTestCase.multi_db , and TestCase.multi_db attributes are deprecated in favor of SimpleTestCase.databases , TransactionTestCase.databases , and TestCase.databases . These new a ... ... have special requirements for introspection (i.e., you have not implemented __getattr__() or other methods that allow for attributes not discoverable by normal mechanisms), you can simply remove the get_all_members() method. The default implementation on ... self . __dir__ ()) __dict__ on model instances Historically, the __dict__ attribute of a model instance has only contained attributes corresponding to the fields on a model. In order to support multiple database configurations, Django 1.2 has added a _stat ... o render the feed's description and title elements (if you were not specifying the title_template and description_template attributes). You should ensure that you always specify title_template and description_template attributes, or provide item_title() an ... ... 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, pr ... ... or if passed True rather than AttributeError . ModelAdmin will raise ValueError if subclassed with its list_select_related attribute set to True . ModelAdmin will raise ValueError if its get_list_select_related() method returns True . Support for overridin ... 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. ... d. django.core.cache.backends.memcached.PyLibMCCache will no longer support passing pylibmc behavior settings as top-level attributes of OPTIONS . The host parameter of django.utils.http.is_safe_url() will be removed. Silencing of exceptions raised while r ... 2026年10月08日