summaryrefslogtreecommitdiff
path: root/tests/commands_sql_migrations/models.py
diff options
context:
space:
mode:
authorVíðir Valberg Guðmundsson <valberg@orn.li>2014-05-29 23:03:10 +0200
committerAndrew Godwin <andrew@aeracode.org>2014-05-29 15:36:30 -0700
commitb6a960cd1df4a191fc2900bcaa76c73f2696fc4d (patch)
tree2c9274417fbb54a8230cf590bf4fd77fcc97b710 /tests/commands_sql_migrations/models.py
parentc5afdc3d73945c8e9d45442dd488f413e67ce2aa (diff)
[1.7.x] Making SQL management commands migration aware.
Diffstat (limited to 'tests/commands_sql_migrations/models.py')
-rw-r--r--tests/commands_sql_migrations/models.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/commands_sql_migrations/models.py b/tests/commands_sql_migrations/models.py
new file mode 100644
index 0000000000..78ad722307
--- /dev/null
+++ b/tests/commands_sql_migrations/models.py
@@ -0,0 +1,10 @@
+from django.db import models
+
+
+class Comment(models.Model):
+ pass
+
+
+class Book(models.Model):
+ title = models.CharField(max_length=100, db_index=True)
+ comments = models.ManyToManyField(Comment)