... n Internet Explorer, Safari, and possibly other browsers, our encoding of cookie values was changed so that the characters comma and semi-colon are treated as non-safe characters, and are therefore encoded as \054 and \073 respectively. This could pro ... duce backwards incompatibilities, especially if you are storing comma or semi-colon in cookies and have JavaScript code that parses and manipulates cookie values client-side. One new feature O ... ... HStoreField は key と value を文字列にキャストするようになりました。 django.contrib.sessions The clearsessions management command now removes file-based sessions. django.contrib.sites The Site model now supports natural keys . django.contrib.staticfi ... s translation domain from all installed apps rather than only the JavaScript strings from LOCALE_PATHS . 管理コマンド call_command() now returns the value returned from the command.handle() method. The new check --fail-level option allows specifying t ... he message level that will cause the command to exit with a non-zero status. The new makemigrations --check option makes the command exit with a non-zero status when ... ... s と validate_ipv6_address の両方を使用して、値が有効な IPv4 アドレスまたは IPv6 アドレスであることを確認します。 validate_comma_separated_integer_list validate_comma_separated_integer_list 値がカンマで区切られた整数のリストであることを確認する RegexV ... ... tabase system checks. Previously these checks were enabled for all configured DATABASES by passing the database tag to the command. The new migrate --check option makes the command exit with a non-zero status when unapplied migrations are detected. Th ... e new returncode argument for CommandError allows customizing the exit status for management commands. The new dbshell -- ARGUMENTS option allows passing extr ... a arguments to the command-line client for the database. The flush and sqlflush commands now include SQL to reset sequences on SQLite. モデル The n ... ... ... lems referring to objects whose primary key value may not be predictable or known. Fast failure for tests Both the test subcommand of django-admin.py and the runtests.py script used to run Django's own test suite now support a --failfast option. When ... h cookies in Internet Explorer, Safari, and possibly other browsers, our encoding of cookie values was changed so that the comma and semicolon are treated as non-safe characters, and are therefore encoded as \054 and \073 respectively. This could prod ... uce backwards incompatibilities, especially if you are storing comma or semi-colon in cookies and have JavaScript code that parses and manipulates cookie values client-side. ModelForm.is_vali ... ... fore the lowercase items. Break long lines using parentheses and indent continuation lines by 4 spaces. Include a trailing comma after the last import and put the closing parenthesis on its own line. Use a single blank line between the last import and ... ... ith multiple keywords. This can be useful, for example, to group several tickets on the same theme. Keywords can either be comma or space separated. Keyword search finds the keyword string anywhere in the keywords. For example, clicking on a ticket wi ... ... d by startproject , startapp , optimizemigration , makemigrations , and squashmigrations are now formatted using the black command if it is present on your PATH . The new optimizemigration command allows optimizing operations for a migration. マイグレ ... ACKS setting allows providing a list of values for secret key rotation. The SECURE_PROXY_SSL_HEADER setting now supports a comma-separated list of protocols in the header value. シグナル The pre_delete and post_delete signals now dispatch the origin o ... with copy.deepcopy() to class attributes in TestCase.setUpTestData() is removed. Support for using a boolean value in BaseCommand.requires_system_checks is removed. The whitelist argument and domain_whitelist attribute of django.core.validators.Email ... ... 場合など、フィールドの状態を再構築する必要がない場合は、 kwargs から値を省略してください: from django.db import models class CommaSepField ( models . Field ): "Implements comma-separated storage of lists" def __init__ ( self , separator = "," , * args , ... 属性をカスタマイズできます。これはモデルのマイグレーションの間に使われ、no-opの AlterField 操作を検出します。 例えば: class CommaSepField ( models . Field ): @property def non_db_attrs ( self ): return super () . non_db_attrs + ( "separator" ,) カスタム ... 2026年10月08日