From 8010289ea2f30f0bb819feba7ec78e67c198023b Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Wed, 29 May 2013 15:47:21 +0200 Subject: Fixed #15697 -- Made sqlindexes aware of auto-created tables Thanks mbertheau for the report and Ash Christopher for the initial patch. --- tests/commands_sql/models.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/commands_sql/models.py') diff --git a/tests/commands_sql/models.py b/tests/commands_sql/models.py index 089aa96f30..d8f372b403 100644 --- a/tests/commands_sql/models.py +++ b/tests/commands_sql/models.py @@ -2,6 +2,12 @@ from django.db import models from django.utils.encoding import python_2_unicode_compatible +@python_2_unicode_compatible +class Comment(models.Model): + pass + + @python_2_unicode_compatible class Book(models.Model): title = models.CharField(max_length=100, db_index=True) + comments = models.ManyToManyField(Comment) -- cgit v1.3