Fixed #23738 -- Allowed migrating from NULL to NOT NULL with the same default value

Thanks to Andrey Antukh for the report.
This commit is contained in:
Markus Holtermann 2014-10-31 14:08:24 +01:00 committed by Tim Graham
parent ed2f96819c
commit 715ccfde24
4 changed files with 38 additions and 2 deletions

View file

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