diff options
Diffstat (limited to 'tests/postgres_tests/test_operations.py')
| -rw-r--r-- | tests/postgres_tests/test_operations.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/postgres_tests/test_operations.py b/tests/postgres_tests/test_operations.py index 7be6de9eff..95c88d5fe0 100644 --- a/tests/postgres_tests/test_operations.py +++ b/tests/postgres_tests/test_operations.py @@ -2,9 +2,8 @@ import unittest from migrations.test_base import OperationTestBase -from django.db import connection, models +from django.db import NotSupportedError, connection from django.db.models import Index -from django.db.utils import NotSupportedError from django.test import modify_settings try: @@ -26,7 +25,7 @@ class AddIndexConcurrentlyTests(OperationTestBase): new_state = project_state.clone() operation = AddIndexConcurrently( 'Pony', - models.Index(fields=['pink'], name='pony_pink_idx'), + Index(fields=['pink'], name='pony_pink_idx'), ) msg = ( 'The AddIndexConcurrently operation cannot be executed inside ' |
