mirror of
https://github.com/django/django.git
synced 2025-07-23 21:25:40 +00:00
Fixed #15697 -- Made sqlindexes aware of auto-created tables
Thanks mbertheau for the report and Ash Christopher for the initial patch.
This commit is contained in:
parent
5939864616
commit
8010289ea2
3 changed files with 27 additions and 25 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue