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:
@@ -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