mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Fixed #28597 -- Fixed crash with the name of a model's autogenerated primary key in an Index's fields.
This commit is contained in:
parent
94cd8efc50
commit
fb02ebe889
4 changed files with 15 additions and 8 deletions
|
@ -89,7 +89,7 @@ class IndexesTests(SimpleTestCase):
|
|||
|
||||
def test_name_set(self):
|
||||
index_names = [index.name for index in Book._meta.indexes]
|
||||
self.assertEqual(index_names, ['model_index_title_196f42_idx'])
|
||||
self.assertCountEqual(index_names, ['model_index_title_196f42_idx', 'model_index_isbn_34f975_idx'])
|
||||
|
||||
def test_abstract_children(self):
|
||||
index_names = [index.name for index in ChildModel1._meta.indexes]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue