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/comment_tests/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/comment_tests') diff --git a/tests/comment_tests/models.py b/tests/comment_tests/models.py index 472b66decd..a2b27e7e87 100644 --- a/tests/comment_tests/models.py +++ b/tests/comment_tests/models.py @@ -30,7 +30,7 @@ class Entry(models.Model): title = models.CharField(max_length=250) body = models.TextField() pub_date = models.DateField() - enable_comments = models.BooleanField() + enable_comments = models.BooleanField(default=False) def __str__(self): return self.title -- cgit v1.3