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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user