1
0
mirror of https://github.com/django/django.git synced 2025-10-25 14:46:09 +00:00

[1.11.x] Fixed #28282 -- Fixed class-based indexes name for models that only inherit Model.

Backport of 0c3c37a376 from master
This commit is contained in:
Jon Dufresne
2017-06-07 07:13:12 -07:00
committed by Tim Graham
parent 319839d780
commit ccb8297eee
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)