diff options
Diffstat (limited to 'tests/commands_sql/models.py')
| -rw-r--r-- | tests/commands_sql/models.py | 6 |
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) |
