summaryrefslogtreecommitdiff
path: root/tests/schema/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/schema/models.py')
-rw-r--r--tests/schema/models.py8
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)