summaryrefslogtreecommitdiff
path: root/tests/commands_sql/models.py
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2013-05-29 15:47:21 +0200
committerClaude Paroz <claude@2xlibre.net>2013-05-29 15:50:26 +0200
commit8010289ea2f30f0bb819feba7ec78e67c198023b (patch)
tree46d262126e17856729de9244628b4dfd7f82c2a2 /tests/commands_sql/models.py
parent5939864616d56cf949f0bca348a8e05230b62fe0 (diff)
Fixed #15697 -- Made sqlindexes aware of auto-created tables
Thanks mbertheau for the report and Ash Christopher for the initial patch.
Diffstat (limited to 'tests/commands_sql/models.py')
-rw-r--r--tests/commands_sql/models.py6
1 files changed, 6 insertions, 0 deletions
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
@@ -3,5 +3,11 @@ 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)