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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user