... _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" , ... ... _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" , ... ... 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 ... ... 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 ). 目次 Django 5.2.9 リリースノート CVE-2025-13372: Pote ... ... 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 ... ... 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 ). 目次 Django 5.2.9 リリースノート CVE-2025-13372: Pote ... ... 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. 目次 Django 1.4.14 リリースノート reverse() could generate URLs pointing to other hosts File ... ... 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. 目次 Django 1.5.9 リリースノート reverse() could generate URLs pointing to other hosts File u ... ... 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. 目次 Django 1.4.14 リリースノート reverse() could generate URLs pointing to other hosts File ... ... 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. 目次 Django 1.5.9 リリースノート reverse() could generate URLs pointing to other hosts File u ... 2026年10月08日