mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Fixed #28282 -- Fixed class-based indexes name for models that only inherit Model.
This commit is contained in:
parent
085c2f94ec
commit
0c3c37a376
4 changed files with 19 additions and 8 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue