mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Simplified imports from django.db and django.contrib.gis.db.
This commit is contained in:
parent
469bf2db15
commit
335c9c94ac
113 changed files with 382 additions and 450 deletions
|
@ -4,10 +4,9 @@ from unittest import mock, skipIf
|
|||
from django.core.exceptions import FieldError
|
||||
from django.db import NotSupportedError, connection
|
||||
from django.db.models import (
|
||||
BooleanField, Case, F, Func, OuterRef, Q, RowRange, Subquery, Value,
|
||||
ValueRange, When, Window, WindowFrame,
|
||||
Avg, BooleanField, Case, F, Func, Max, Min, OuterRef, Q, RowRange,
|
||||
Subquery, Sum, Value, ValueRange, When, Window, WindowFrame,
|
||||
)
|
||||
from django.db.models.aggregates import Avg, Max, Min, Sum
|
||||
from django.db.models.functions import (
|
||||
CumeDist, DenseRank, ExtractYear, FirstValue, Lag, LastValue, Lead,
|
||||
NthValue, Ntile, PercentRank, Rank, RowNumber, Upper,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue