mirror of
https://github.com/django/django.git
synced 2025-10-09 02:00:31 +00:00
[4.1.x] Fixed #33773 -- Made Index with multiple fields respect DEFAULT_INDEX_TABLESPACE.
Thanks to Simon Charette for locating where issue lay.
Backport of de1c8320ce
from main
This commit is contained in:
parent
9d8b694205
commit
a7f398ae59
2 changed files with 5 additions and 1 deletions
|
@ -3,7 +3,7 @@ from unittest import mock
|
|||
from django.conf import settings
|
||||
from django.db import connection, models
|
||||
from django.db.models.functions import Lower, Upper
|
||||
from django.test import SimpleTestCase, TestCase, skipUnlessDBFeature
|
||||
from django.test import SimpleTestCase, TestCase, override_settings, skipUnlessDBFeature
|
||||
from django.test.utils import isolate_apps
|
||||
|
||||
from .models import Book, ChildModel1, ChildModel2
|
||||
|
@ -305,6 +305,7 @@ class SimpleIndexesTests(SimpleTestCase):
|
|||
)
|
||||
|
||||
|
||||
@override_settings(DEFAULT_TABLESPACE=None)
|
||||
class IndexesTests(TestCase):
|
||||
@skipUnlessDBFeature("supports_tablespaces")
|
||||
def test_db_tablespace(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue