mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Changed django.db.models.indexes.Index imports to django.db.models.Index.
This commit is contained in:
@@ -1105,7 +1105,7 @@ class ModelStateTests(SimpleTestCase):
|
||||
class Meta:
|
||||
app_label = 'migrations'
|
||||
abstract = True
|
||||
indexes = [models.indexes.Index(fields=['name'])]
|
||||
indexes = [models.Index(fields=['name'])]
|
||||
|
||||
class Child1(Abstract):
|
||||
pass
|
||||
@@ -1131,7 +1131,7 @@ class ModelStateTests(SimpleTestCase):
|
||||
|
||||
class Meta:
|
||||
app_label = 'migrations'
|
||||
indexes = [models.indexes.Index(fields=['name'], name='foo_idx')]
|
||||
indexes = [models.Index(fields=['name'], name='foo_idx')]
|
||||
|
||||
model_state = ModelState.from_model(TestModel)
|
||||
index_names = [index.name for index in model_state.options['indexes']]
|
||||
|
||||
Reference in New Issue
Block a user