mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Simplified imports from django.db and django.contrib.gis.db.
This commit is contained in:
committed by
Mariusz Felisiak
parent
469bf2db15
commit
335c9c94ac
@@ -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 '
|
||||
|
||||
Reference in New Issue
Block a user