summaryrefslogtreecommitdiff
path: root/tests/modeladmin
diff options
context:
space:
mode:
authorAlasdair Nicol <alasdair@thenicols.net>2013-08-11 21:19:09 +0100
committerTim Graham <timograham@gmail.com>2013-08-15 20:33:02 -0400
commit919934602fd2767024126e094d33f0ad64947270 (patch)
tree562200340750d4f52d8eaa287de879971f54ece5 /tests/modeladmin
parent7825fb878873bfab6762ce001b0446f3ebfb25ea (diff)
[1.6.x] 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. Backport of 22c6497f99 from master
Diffstat (limited to 'tests/modeladmin')
-rw-r--r--tests/modeladmin/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/modeladmin/models.py b/tests/modeladmin/models.py
index fdbcabd187..4789e35a43 100644
--- a/tests/modeladmin/models.py
+++ b/tests/modeladmin/models.py
@@ -32,7 +32,7 @@ class ValidationTestModel(models.Model):
slug = models.SlugField()
users = models.ManyToManyField(User)
state = models.CharField(max_length=2, choices=(("CO", "Colorado"), ("WA", "Washington")))
- is_active = models.BooleanField()
+ is_active = models.BooleanField(default=False)
pub_date = models.DateTimeField()
band = models.ForeignKey(Band)
no = models.IntegerField(verbose_name="Number", blank=True, null=True) # This field is intentionally 2 characters long. See #16080.