... ... run these tests but won't benefit from the improvements. Tests are now run within two nested atomic() blocks: one for the whole class and one for each test. The class method TestCase.setUpTestData() adds the ability to set up test data at the class l ... hnique can speed up the tests as compared to using setUp() . Fixture loading within TestCase is now performed once for the whole TestCase . マイナーな機能 django.contrib.admin ModelAdmin now has a has_module_permission() method to allow limiting acces ... from these methods are now executed within the method's transaction and any exception in a signal handler will prevent the whole operation. Assigning unsaved objects to relations raises an error 注釈 To more easily allow in-memory usage of models, thi ... ... (汎用リレーション) Django copies the fetch mode of an instance to any related objects it fetches, so the mode applies to a whole tree of relationships, not just the top-level model in the initial QuerySet . This copying is also done in related manager ... ... ositional arguments otherwise. The values are passed as strings, without any type conversion. When a route ends with $ the whole requested URL, matching against path_info , must match the regular expression pattern ( re.fullmatch() is used). The view ... ... _places より大きい場合は 'max_decimal_places' 。 整数部の桁数が max_digits と decimal_places の差よりも大きい場合は、 'max_whole_digits' 。 FileExtensionValidator class FileExtensionValidator ( allowed_extensions , message , code ) [ソース] value.name ... ... ng of the test, but this prevents the test --keepdb option from working properly (the database was empty at the end of the whole test suite). This change shouldn't have an impact on your tests unless you've customized TransactionTestCase 's internals. ... ... aving to retype them. Tests that only fail in combination In case a test passes when run in isolation but fails within the whole suite, we have some tools to help analyze the problem. The --bisect option of runtests.py will run the failing test while ... ... _name = "Billy Goat" >>> r . save () # Delete an object with delete(). >>> r . delete () 作業場 (scaffold) ではなく完成品 (whole house) の、動的な admin インタフェース モデルが定義されると、Django は自動的にプロ仕様の本番仕様の 管理インターフェース -- ... ... は無視されます。 エラーメッセージのキー: required , invalid , max_value , min_value , max_digits , max_decimal_places , max_whole_digits , step_size 。 max_value および min_value のエラーメッセージには %(limit_value)s が含まれる場合があり、これは適切な ... 制限値に置き換えられます。同様に、 max_digits 、 max_decimal_places 、および max_whole_digits のエラーメッセージには %(max)s が含まれる場合があります。 5つのオプション引数を受け取ります: max_value min_value こ ... ... a single sync_to_async() (or async_to_sync() ) crossing. The per-call cost of the context switch is then spread across the whole loop and effectively disappears. The same per-call adaptation cost applies to middleware. Django will attempt to minimize ... 2026年10月08日