1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #28282 -- Fixed class-based indexes name for models that only inherit Model.

This commit is contained in:
Jon Dufresne
2017-06-07 07:13:12 -07:00
committed by Tim Graham
parent 085c2f94ec
commit 0c3c37a376
4 changed files with 19 additions and 8 deletions

View File

@@ -6,6 +6,9 @@ class Book(models.Model):
author = models.CharField(max_length=50)
pages = models.IntegerField(db_column='page_count')
class Meta:
indexes = [models.indexes.Index(fields=['title'])]
class AbstractModel(models.Model):
name = models.CharField(max_length=50)