diff options
| author | Alasdair Nicol <alasdair@thenicols.net> | 2013-08-11 21:19:09 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2013-08-15 19:47:26 -0400 |
| commit | 22c6497f990fd12359b759a71abfcbf3f52b2d52 (patch) | |
| tree | c04062583cf2cffabc193e635542fa91d99e163e /tests/check/models.py | |
| parent | 55339a76691724109770092976e660ac62358bc5 (diff) | |
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.
Diffstat (limited to 'tests/check/models.py')
| -rw-r--r-- | tests/check/models.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/check/models.py b/tests/check/models.py index 78a10abba6..212b01bdd2 100644 --- a/tests/check/models.py +++ b/tests/check/models.py @@ -1 +1,9 @@ -# Stubby. +from django.db import models + +class Book(models.Model): + title = models.CharField(max_length=250) + is_published = models.BooleanField(default=False) + +class BlogPost(models.Model): + title = models.CharField(max_length=250) + is_published = models.BooleanField(default=False) |
