... jango.db.models.fields.CharField: password>, <django.db.models.fields.DateTimeField: last_login>, <django.db.models.fields.BooleanField: is_superuser>, <django.db.models.fields.CharField: username>, <django.db.models.fields.CharField: first_name>, <django.db ... .models.fields.CharField: last_name>, <django.db.models.fields.EmailField: email>, <django.db.models.fields.BooleanField: is_staff>, <django.db.models.fields.BooleanField: is_active>, <django.db.models.fields.DateTimeField: date_joined>, <djan ... jango.db.models.fields.CharField: password>, <django.db.models.fields.DateTimeField: last_login>, <django.db.models.fields.BooleanField: is_superuser>, <django.db.models.fields.CharField: username>, <django.db.models.fields.CharField: first_name>, <django.db ... ... rather than the submitted address. バグ修正 Fixed a data loss possibility in SplitArrayField . When using with ArrayField(BooleanField()) , all values after the first True value were marked as checked instead of preserving passed values ( #31073 ). ... ... rather than the submitted address. バグ修正 Fixed a data loss possibility in SplitArrayField . When using with ArrayField(BooleanField()) , all values after the first True value were marked as checked instead of preserving passed values ( #31073 ). ... ... nt . objects . filter ( ages__endswith = 10 ) <QuerySet [<Event: Soft play>]> isempty 返されるオブジェクトは空の範囲です。 BooleanField の有効なルックアップに連結できます。 >>> Event . objects . filter ( ages__isempty = True ) <QuerySet []> lower_inc 与えられ ... た真偽値に基づき、包含もしくは非包含な下限値を持つオブジェクトを返します。 BooleanField の有効なルックアップに連結できます。 >>> Event . objects . filter ( ages__lower_inc = True ) <QuerySet [<Event: Soft play> ... , <Event: Pub trip>]> lower_inf 渡された真偽値に応じて、無限大または有界下限境界を持つオブジェクトを返します。 BooleanField に対して有効なルックアップに連結できます。 >>> Event . objects . filter ( ages__lower_inf = True ) <QuerySet []> upper_inc ... ... ws with non- str environment variables ( #28174 ). Corrected Field.has_changed() to return False for disabled form fields: BooleanField , MultipleChoiceField , MultiValueField , FileField , ModelChoiceField , and ModelMultipleChoiceField . Fixed QuerySet.cou ... ... ゾーン警告の配置が正しくなかったリグレッションを修正しました ( #34645 )。 Django 4.2 において、 ModelAdmin.list_editable が BooleanField を含む場合にadmin 画面のチェンジリストビューで行のハイライトが誤っていた問題のリグレッションを修正しました ( #34638 )。 ... ... place = models . OneToOneField ( Place , on_delete = models . CASCADE , primary_key = True , ) serves_hot_dogs = models . BooleanField ( default = False ) serves_pizza = models . BooleanField ( default = False ) def __str__ ( self ): return " %s the restaur ... ... room = models . ForeignKey ( "Room" , on_delete = models . CASCADE ) timespan = DateTimeRangeField () cancelled = models . BooleanField ( default = False ) class Meta : constraints = [ ExclusionConstraint ( name = "exclude_overlapping_reservations" , express ... m" , on_delete = models . CASCADE ) start = models . DateTimeField () end = models . DateTimeField () cancelled = models . BooleanField ( default = False ) class Meta : constraints = [ ExclusionConstraint ( name = "exclude_overlapping_reservations" , express ... ... he model was saved. If you need an unmodified instance of your model, you should pass a copy to the ModelForm constructor. BooleanField on MySQL In previous versions of Django, a model's BooleanField under MySQL would return its value as either 1 or 0 , inst ... True or False ; for most people this wasn't a problem because bool is a subclass of int in Python. In Django 1.2, however, BooleanField on MySQL correctly returns a real bool . The only time this should ever be an issue is if you were expecting the repr of a ... BooleanField to print 1 or 0 . Changes to the interpretation of max_num in FormSets As part of enhancements made to the handling of For ... ... filters, e.g. in When conditions ( #31060 ). Fixed a data loss possibility in SplitArrayField . When using with ArrayField(BooleanField()) , all values after the first True value were marked as checked instead of preserving passed values ( #31073 ). ... 2026年10月08日