summaryrefslogtreecommitdiff
path: root/tests/model_forms/models.py
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2016-08-11 15:18:48 -0400
committerTim Graham <timograham@gmail.com>2016-08-24 19:37:04 -0400
commit325dd0befea3012c42eefa061f509fbdf1b6a8aa (patch)
tree87d026fd736c1f8985cb1882e6a42e4bf7e76776 /tests/model_forms/models.py
parentc4ee93128f1880c3993cf07619ff4e0524920a8e (diff)
[1.10.x] Fixed #27039 -- Fixed empty data fallback to model field default in model forms.
Backport of 4bc6b939944183533ae74791d21282e613f63a96 from master
Diffstat (limited to 'tests/model_forms/models.py')
-rw-r--r--tests/model_forms/models.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/model_forms/models.py b/tests/model_forms/models.py
index 2c3ff26cbe..dad245ba78 100644
--- a/tests/model_forms/models.py
+++ b/tests/model_forms/models.py
@@ -122,6 +122,7 @@ class PublicationDefaults(models.Model):
date_published = models.DateField(default=datetime.date.today)
mode = models.CharField(max_length=2, choices=MODE_CHOICES, default=default_mode)
category = models.IntegerField(choices=CATEGORY_CHOICES, default=default_category)
+ active = models.BooleanField(default=True)
class Author(models.Model):