1
0
mirror of https://github.com/django/django.git synced 2025-10-26 23:26:08 +00:00

[1.10.x] Fixed #27039 -- Fixed empty data fallback to model field default in model forms.

Backport of 4bc6b93994 from master
This commit is contained in:
Tim Graham
2016-08-11 15:18:48 -04:00
parent c4ee93128f
commit 325dd0befe
6 changed files with 69 additions and 2 deletions

View File

@@ -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):