mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #29227 -- Allowed BooleanField to be null=True.
Thanks Lynn Cyrin for contributing to the patch, and Nick Pope for review.
This commit is contained in:
@@ -168,7 +168,7 @@ class Migration(migrations.Migration):
|
||||
name='AggregateTestModel',
|
||||
fields=[
|
||||
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
|
||||
('boolean_field', models.NullBooleanField()),
|
||||
('boolean_field', models.BooleanField(null=True)),
|
||||
('char_field', models.CharField(max_length=30, blank=True)),
|
||||
('integer_field', models.IntegerField(null=True)),
|
||||
]
|
||||
|
||||
@@ -156,7 +156,7 @@ class AggregateTestModel(models.Model):
|
||||
"""
|
||||
char_field = models.CharField(max_length=30, blank=True)
|
||||
integer_field = models.IntegerField(null=True)
|
||||
boolean_field = models.NullBooleanField()
|
||||
boolean_field = models.BooleanField(null=True)
|
||||
|
||||
|
||||
class StatTestModel(models.Model):
|
||||
|
||||
Reference in New Issue
Block a user