From 22c6497f990fd12359b759a71abfcbf3f52b2d52 Mon Sep 17 00:00:00 2001 From: Alasdair Nicol Date: Sun, 11 Aug 2013 21:19:09 +0100 Subject: Fixed #20895 -- Made check management command warn if a BooleanField does not have a default value Thanks to Collin Anderson for the suggestion and Tim Graham for reviewing the patch. --- tests/raw_query/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/raw_query') diff --git a/tests/raw_query/models.py b/tests/raw_query/models.py index e7e221dc6e..33f754958e 100644 --- a/tests/raw_query/models.py +++ b/tests/raw_query/models.py @@ -18,7 +18,7 @@ class Author(models.Model): class Book(models.Model): title = models.CharField(max_length=255) author = models.ForeignKey(Author) - paperback = models.BooleanField() + paperback = models.BooleanField(default=False) opening_line = models.TextField() class Coffee(models.Model): -- cgit v1.3