diff options
| author | Markus Holtermann <info@markusholtermann.eu> | 2014-10-31 14:08:24 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-10-31 13:30:56 -0400 |
| commit | 40ad022d5e366f56424dcdb885607d13c00a550e (patch) | |
| tree | 39d95750106a98ada7d98df26649612a20163634 /tests/schema/models.py | |
| parent | 12bace46c1ca089e075ac9a2aac142302967a1c5 (diff) | |
[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
Diffstat (limited to 'tests/schema/models.py')
| -rw-r--r-- | tests/schema/models.py | 8 |
1 files changed, 8 insertions, 0 deletions
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) |
