From 40ad022d5e366f56424dcdb885607d13c00a550e Mon Sep 17 00:00:00 2001 From: Markus Holtermann Date: Fri, 31 Oct 2014 14:08:24 +0100 Subject: [1.7.x] Fixed #23738 -- Allowed migrating from NULL to NOT NULL with the same default value Thanks to Andrey Antukh for the report. Backport of 715ccfde24 from master --- tests/schema/models.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/schema/models.py') diff --git a/tests/schema/models.py b/tests/schema/models.py index ece07194b4..3139838b97 100644 --- a/tests/schema/models.py +++ b/tests/schema/models.py @@ -17,6 +17,14 @@ class Author(models.Model): apps = new_apps +class AuthorWithDefaultHeight(models.Model): + name = models.CharField(max_length=255) + height = models.PositiveIntegerField(null=True, blank=True, default=42) + + class Meta: + apps = new_apps + + class AuthorWithM2M(models.Model): name = models.CharField(max_length=255) -- cgit v1.3