... _CHOICES = { REGULAR : "Regular" , GOLD : "Gold" , PLATINUM : "Platinum" , } name = models . CharField ( max_length = 50 ) registered_on = models . DateField () account_type = models . CharField ( max_length = 1 , choices = ACCOUNT_TYPE_CHOICES , default = ... GOLD , then = F ( "name" )) >>> # You can use field lookups in the condition >>> from datetime import date >>> When ( ... registered_on__gt = date ( 2014 , 1 , 1 ), ... registered_on__lt = date ( 2015 , 1 , 1 ), ... then = "account_type" , ... ) >>> # Com ... sing lookup expressions. >>> from django.db.models.lookups import GreaterThan , LessThan >>> When ( ... GreaterThan ( F ( "registered_on" ), date ( 2014 , 1 , 1 )) ... & LessThan ( F ( "registered_on" ), date ( 2015 , 1 , 1 )), ... then = "account_type" , ... ... e limit is now 16384 characters ( #36743 ). Fixed a crash on Python 3.14+ that prevented template tag functions from being registered when their type annotations required deferred evaluation ( #36712 ). ... ... hing against quoted phrases with spaces. Read-only related fields are now rendered as navigable links if target models are registered in the admin. The admin now supports theming, and includes a dark theme that is enabled according to browser settings. See ... ent migration history is skipped. BaseCommand.requires_system_checks now supports specifying a list of tags. System checks registered in the chosen tags will be checked for errors prior to executing the command. In previous versions, either all or none of ... Please use urllib.parse.parse_qsl() instead. django.test.utils.TestContextDecorator now uses addCleanup() so that cleanups registered in the setUp() method are called before TestContextDecorator.disable() . SessionMiddleware now raises a SessionInterrupted ... ... address the issue, an exception will now be raised if a to_field value that isn't a related field to a model that has been registered with the admin is specified. ... ... address the issue, an exception will now be raised if a to_field value that isn't a related field to a model that has been registered with the admin is specified. ... ... address the issue, an exception will now be raised if a to_field value that isn't a related field to a model that has been registered with the admin is specified. バグ修正 Corrected email and URL validation to reject a trailing dash ( #22579 ). Prevented i ... ... dmin changelist permits filtering via lookup_allowed() , the flaw was reachable by staff users with view permission on any registered model containing a spatial field. The following types are now disallowed by spatial lookups: dict A str that is not a vali ... ... dmin changelist permits filtering via lookup_allowed() , the flaw was reachable by staff users with view permission on any registered model containing a spatial field. The following types are now disallowed by spatial lookups: dict A str that is not a vali ... ... ill be used when performing reverse resolution. In other words, reusable applications like Django's admin interface may be registered multiple times without URL conflicts. For full details, see the documentation on defining URL namespaces . GeoDjango In Dj ... ... rnatives. Compared to the QUERY_TERMS constant, they allow your code to also account for any custom lookups that have been registered. py-bcrypt はメンテナンスされていないため、互換性を削除しました。代替として bcrypt を使用してください。 2.1 で非推奨になっ ... 2026年10月08日