summaryrefslogtreecommitdiff
path: root/tests/commands_sql/models.py
diff options
context:
space:
mode:
authorMarc Tamlyn <marc.tamlyn@gmail.com>2014-09-04 16:32:51 +0100
committerMarc Tamlyn <marc.tamlyn@gmail.com>2014-09-06 19:02:28 +0100
commit48e10710074a06584b6f8331a6e74492be5acf18 (patch)
tree8129da9afe985d3a688f605a38394e289f249405 /tests/commands_sql/models.py
parentf8fdb7177b79b79968a3f40612d33c7367ae584f (diff)
[1.7.x] Fixed #23416 -- Make sure DatabaseCreation respects checks.
Migrations respected Field.db_parameters()['check'], but DatabaseCreation was still using just Field.db_type(). Backport of 14c8456 from master
Diffstat (limited to 'tests/commands_sql/models.py')
-rw-r--r--tests/commands_sql/models.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/commands_sql/models.py b/tests/commands_sql/models.py
index 78ad722307..fe5768b3dd 100644
--- a/tests/commands_sql/models.py
+++ b/tests/commands_sql/models.py
@@ -8,3 +8,4 @@ class Comment(models.Model):
class Book(models.Model):
title = models.CharField(max_length=100, db_index=True)
comments = models.ManyToManyField(Comment)
+ counter = models.PositiveIntegerField()