... ango.contrib.auth Django's authentication framework. django.contrib.auth.backends Django's built-in authentication backend classes. django.contrib.auth.forms django.contrib.auth.hashers django.contrib.auth.middleware Authentication middleware. django.co ... jango core exceptions django.core.files File handling and storage django.core.files.storage django.core.files.uploadedfile Classes representing uploaded files. django.core.files.uploadhandler Django's handlers for file uploads. django.core.mail Helpers ... to send email. django.core.management django.core.paginator Classes to help you easily manage paginated data. django.core.signals Core signals sent by the request/response system. django.cor ... ... old-style of middleware described in DEP 0005 . You'll need to adapt old, custom middleware and switch from the MIDDLEWARE_CLASSES setting to the new MIDDLEWARE setting to take advantage of the improvements. Unicode ユーザー名の公式サポート The User mod ... ため、必要な場合に 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 the ... erpolation using the '%(app_label)s' and '%(class)s' strings. Allowed overriding model fields inherited from abstract base classes. The prefetch_related_objects() function is now a public API. QuerySet.bulk_create() sets the primary key on objects when ... ... can produce unexpected results, similar to what would occur if the query itself had been manipulated. Django's model field classes are aware of their own types and most such classes perform explicit conversion of query arguments to the correct database- ... level type before querying. However, three model field classes did not correctly convert their arguments: FilePathField GenericIPAddressField IPAddressField These three fields have been ... re querying. Additionally, developers of custom model fields are now warned via documentation to ensure their custom field classes will perform appropriate type conversions, and users of the raw() and extra() query methods -- which allow the developer t ... ... す。 exclude を設定して fields を設定しない場合 exclude で指定していないすべてのモデルフィールドをフォームに含めます。 field_classes ModelFormOptions. field_classes モデルフィールド名に対して Field クラスを対応づける辞書。これは、モデルフィールドの Field. ... back = None , widgets = None , localized_fields = None , labels = None , help_texts = None , error_messages = None , field_classes = None ) [ソース] 与えられた model に対して ModelForm を返します。必要に応じて form 引数を渡すことで、 ModelForm を構築する ... 名のディクショナリです。 error_messages は、エラーメッセージにマッピングされたモデルフィールド名のディクショナリです。 field_classes は、フォームフィールドクラスにマッピングされたモデルフィールド名のディクショナリです。 使用例は ModelForm factory 関数 を参 ... ... can produce unexpected results, similar to what would occur if the query itself had been manipulated. Django's model field classes are aware of their own types and most such classes perform explicit conversion of query arguments to the correct database- ... level type before querying. However, three model field classes did not correctly convert their arguments: FilePathField GenericIPAddressField IPAddressField These three fields have been ... re querying. Additionally, developers of custom model fields are now warned via documentation to ensure their custom field classes will perform appropriate type conversions, and users of the raw() and extra() query methods -- which allow the developer t ... ... can produce unexpected results, similar to what would occur if the query itself had been manipulated. Django's model field classes are aware of their own types and most such classes perform explicit conversion of query arguments to the correct database- ... level type before querying. However, three model field classes did not correctly convert their arguments: FilePathField GenericIPAddressField IPAddressField These three fields have been ... re querying. Additionally, developers of custom model fields are now warned via documentation to ensure their custom field classes will perform appropriate type conversions, and users of the raw() and extra() query methods -- which allow the developer t ... ... ng filename that already exists on the storage. 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( ... sent in its attributes. The rendering of non-field errors in unordered lists ( <ul> ) now includes nonfield in its list of classes to distinguish them from field-specific errors. Field now accepts a label_suffix argument, which will override the form's ... e database backend API are documented to assist those writing third-party backends in updating their code: BaseDatabaseXXX classes have been moved to django.db.backends.base . Please import them from the new locations: from django.db.backends.base.base ... ... straightforward process. This should make it easier to diagnose import 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 Fie ... ied safely, both essential parts of these new features. This change should not affect you unless you write custom Field subclasses; if you do, you may need to reimplement the deconstruct() method if your subclass changes the method signature of __init__ ... ents to fields must themselves be serializable; to see what we consider serializable, and to find out how to make your own classes serializable, read the migration serialization documentation . Calling custom QuerySet methods from the Manager Historical ... ... 最新リリースを使用することを 強く推奨 します。 Django 2.2 の新機能 Constraints The new CheckConstraint and UniqueConstraint classes enable adding custom database constraints. Constraints are added to models using the Meta.constraints option. マイナーな機 ... ArrayAgg and StringAgg determines the ordering of the aggregated elements. The new BTreeIndex , HashIndex and SpGistIndex classes allow creating B-Tree , hash , and SP-GiST indexes in the database. BrinIndex now has the autosummarize parameter. The new ... initializes view attributes before calling dispatch() . It allows mixins to set up instance attributes for reuse in child classes. 国際化 (internationalization) Added support and translations for the Armenian language. 管理コマンド The new --force-colo ... ... ed. The django.core.mail.BadHeaderError exception will be removed. The django.core.mail.SafeMIMEText and SafeMIMEMultipart classes will be removed. The django.core.mail.forbid_multi_line_headers() and django.core.mail.message.sanitize_address() function ... trib.postgres.aggregates.BitAnd , django.contrib.postgres.aggregates.BitOr , and django.contrib.postgres.aggregates.BitXor classes will be removed. Support for double-dot variable lookup, like {{ book..title }} , is removed. The default value of the alg ... go.contrib.postgres.aggregates.JSONBAgg , and django.contrib.postgres.aggregates.StringAgg will be removed. Support for subclasses of RemoteUserMiddleware that override process_request() without overriding aprocess_request() will be removed. 6.0 これらの ... 2026年10月08日