[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
This commit is contained in:
Marc Tamlyn 2014-09-04 16:32:51 +01:00
parent f8fdb7177b
commit 48e1071007
4 changed files with 21 additions and 1 deletions

View file

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