1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #23416 -- Make sure DatabaseCreation respects checks.

Migrations respected Field.db_parameters()['check'], but
DatabaseCreation was still using just Field.db_type().
This commit is contained in:
Marc Tamlyn
2014-09-04 16:32:51 +01:00
parent e5febfb3c3
commit 14c8456ffe
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()