mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Refs #14357 -- Deprecated Meta.ordering affecting GROUP BY queries.
Thanks Ramiro Morales for contributing to the patch.
This commit is contained in:
committed by
Tim Graham
parent
c52ecbda61
commit
1b1f64ee5a
@@ -2,8 +2,11 @@ import unittest
|
||||
|
||||
from django.db import NotSupportedError, connection, transaction
|
||||
from django.db.models import Count
|
||||
from django.test import TestCase, skipIfDBFeature, skipUnlessDBFeature
|
||||
from django.test import (
|
||||
TestCase, ignore_warnings, skipIfDBFeature, skipUnlessDBFeature,
|
||||
)
|
||||
from django.test.utils import CaptureQueriesContext
|
||||
from django.utils.deprecation import RemovedInDjango31Warning
|
||||
|
||||
from .models import Tag
|
||||
|
||||
@@ -11,6 +14,7 @@ from .models import Tag
|
||||
@skipUnlessDBFeature('supports_explaining_query_execution')
|
||||
class ExplainTests(TestCase):
|
||||
|
||||
@ignore_warnings(category=RemovedInDjango31Warning)
|
||||
def test_basic(self):
|
||||
querysets = [
|
||||
Tag.objects.filter(name='test'),
|
||||
|
||||
Reference in New Issue
Block a user