diff options
| author | Nick Pope <nick.pope@flightdataservices.com> | 2019-08-20 08:54:41 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-02-04 13:20:06 +0100 |
| commit | 335c9c94acf263901fb023404408880245b0c4b4 (patch) | |
| tree | 691e9683de6c9840cd0a9a097d020c499ea735db /tests/postgres_tests/test_operations.py | |
| parent | 469bf2db15597f2c87cb0f8f64132056d2467f15 (diff) | |
Simplified imports from django.db and django.contrib.gis.db.
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 ' |
