mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +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
@@ -1,5 +1,4 @@
|
||||
from django.db import connection, models
|
||||
from django.db.models.expressions import Func
|
||||
from django.test import SimpleTestCase
|
||||
|
||||
from .utils import FuncTestMixin
|
||||
@@ -8,7 +7,7 @@ from .utils import FuncTestMixin
|
||||
def test_mutation(raises=True):
|
||||
def wrapper(mutation_func):
|
||||
def test(test_case_instance, *args, **kwargs):
|
||||
class TestFunc(Func):
|
||||
class TestFunc(models.Func):
|
||||
output_field = models.IntegerField()
|
||||
|
||||
def __init__(self):
|
||||
|
||||
Reference in New Issue
Block a user