diff options
author | Tim Graham <timograham@gmail.com> | 2017-05-06 10:56:28 -0400 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2018-03-20 12:10:10 -0400 |
commit | 5fa4f40f45fcdbb7e48489ed3039a314b5c961d0 (patch) | |
tree | 272b8798d2c2a054f56d8613a42453bce30f92c0 /tests/generic_relations_regress | |
parent | 73f7d1755ff1da3aac687c7b046e4b5028e505db (diff) | |
download | django-5fa4f40f45fcdbb7e48489ed3039a314b5c961d0.tar.gz |
Fixed #29227 -- Allowed BooleanField to be null=True.
Thanks Lynn Cyrin for contributing to the patch, and Nick Pope for review.
Diffstat (limited to 'tests/generic_relations_regress')
-rw-r--r-- | tests/generic_relations_regress/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/generic_relations_regress/models.py b/tests/generic_relations_regress/models.py index 5d8716aa0c..f9cdb1b549 100644 --- a/tests/generic_relations_regress/models.py +++ b/tests/generic_relations_regress/models.py @@ -169,7 +169,7 @@ class HasLinkThing(HasLinks): class A(models.Model): - flag = models.NullBooleanField() + flag = models.BooleanField(null=True) content_type = models.ForeignKey(ContentType, models.CASCADE) object_id = models.PositiveIntegerField() content_object = GenericForeignKey('content_type', 'object_id') |