1
0
mirror of https://github.com/django/django.git synced 2025-07-19 17:19:12 +00:00

[1.8.x] Sorted single letter imports per the latest version of isort.

Backport of 1c8c0837c61a9e9eb2129df29f75be92e47e926c from master
This commit is contained in:
Tim Graham 2016-03-28 11:19:25 -04:00
parent ca051388de
commit 100f28ed28
13 changed files with 17 additions and 17 deletions

View File

@ -16,10 +16,10 @@ from django.db import (
from django.db.models import sql from django.db.models import sql
from django.db.models.constants import LOOKUP_SEP from django.db.models.constants import LOOKUP_SEP
from django.db.models.deletion import Collector from django.db.models.deletion import Collector
from django.db.models.expressions import F, Date, DateTime from django.db.models.expressions import Date, DateTime, F
from django.db.models.fields import AutoField, Empty from django.db.models.fields import AutoField, Empty
from django.db.models.query_utils import ( from django.db.models.query_utils import (
Q, InvalidQuery, deferred_class_factory, InvalidQuery, Q, deferred_class_factory,
) )
from django.db.models.sql.constants import CURSOR from django.db.models.sql.constants import CURSOR
from django.utils import six, timezone from django.utils import six, timezone

View File

@ -18,7 +18,7 @@ from django.db.models.aggregates import Count
from django.db.models.constants import LOOKUP_SEP from django.db.models.constants import LOOKUP_SEP
from django.db.models.expressions import Col, Ref from django.db.models.expressions import Col, Ref
from django.db.models.query_utils import ( from django.db.models.query_utils import (
Q, PathInfo, refs_aggregate, refs_expression, PathInfo, Q, refs_aggregate, refs_expression,
) )
from django.db.models.sql.constants import ( from django.db.models.sql.constants import (
INNER, LOUTER, ORDER_DIR, ORDER_PATTERN, QUERY_TERMS, SINGLE, INNER, LOUTER, ORDER_DIR, ORDER_PATTERN, QUERY_TERMS, SINGLE,

View File

@ -7,7 +7,7 @@ from decimal import Decimal
from django.core.exceptions import FieldError from django.core.exceptions import FieldError
from django.db import connection from django.db import connection
from django.db.models import ( from django.db.models import (
F, Aggregate, Avg, Count, DecimalField, FloatField, Func, IntegerField, Aggregate, Avg, Count, DecimalField, F, FloatField, Func, IntegerField,
Max, Min, Sum, Value, Max, Min, Sum, Value,
) )
from django.test import TestCase, ignore_warnings from django.test import TestCase, ignore_warnings

View File

@ -8,7 +8,7 @@ from operator import attrgetter
from django.contrib.contenttypes.models import ContentType from django.contrib.contenttypes.models import ContentType
from django.core.exceptions import FieldError from django.core.exceptions import FieldError
from django.db.models import ( from django.db.models import (
F, Q, Avg, Count, Max, StdDev, Sum, Value, Variance, Avg, Count, F, Max, Q, StdDev, Sum, Value, Variance,
) )
from django.test import TestCase, skipUnlessDBFeature from django.test import TestCase, skipUnlessDBFeature
from django.test.utils import Approximate from django.test.utils import Approximate

View File

@ -5,7 +5,7 @@ from decimal import Decimal
from django.core.exceptions import FieldDoesNotExist, FieldError from django.core.exceptions import FieldDoesNotExist, FieldError
from django.db.models import ( from django.db.models import (
F, BooleanField, CharField, Count, DateTimeField, ExpressionWrapper, Func, BooleanField, CharField, Count, DateTimeField, ExpressionWrapper, F, Func,
IntegerField, Sum, Value, IntegerField, Sum, Value,
) )
from django.test import TestCase from django.test import TestCase

View File

@ -8,8 +8,8 @@ from django.test import TestCase, skipIfDBFeature, skipUnlessDBFeature
from django.utils.six.moves import range from django.utils.six.moves import range
from .models import ( from .models import (
A, M, MR, R, S, T, Avatar, Base, Child, HiddenUser, HiddenUserProfile, MR, A, Avatar, Base, Child, HiddenUser, HiddenUserProfile, M, M2MFrom,
M2MFrom, M2MTo, MRNull, Parent, RChild, User, create_a, get_default_r, M2MTo, MRNull, Parent, R, RChild, S, T, User, create_a, get_default_r,
) )

View File

@ -11,7 +11,7 @@ from django.db.models.aggregates import (
Avg, Count, Max, Min, StdDev, Sum, Variance, Avg, Count, Max, Min, StdDev, Sum, Variance,
) )
from django.db.models.expressions import ( from django.db.models.expressions import (
F, Case, Col, Date, DateTime, ExpressionWrapper, Func, OrderBy, Random, Case, Col, Date, DateTime, ExpressionWrapper, F, Func, OrderBy, Random,
RawSQL, Ref, Value, When, RawSQL, Ref, Value, When,
) )
from django.db.models.functions import ( from django.db.models.functions import (

View File

@ -8,7 +8,7 @@ from uuid import UUID
from django.core.exceptions import FieldError from django.core.exceptions import FieldError
from django.db import connection, models from django.db import connection, models
from django.db.models import F, Q, Max, Min, Sum, Value from django.db.models import F, Max, Min, Q, Sum, Value
from django.db.models.expressions import Case, When from django.db.models.expressions import Case, When
from django.test import TestCase from django.test import TestCase
from django.utils import six from django.utils import six

View File

@ -5,7 +5,7 @@ from django.forms.models import modelform_factory
from django.test import TestCase, skipIfDBFeature from django.test import TestCase, skipIfDBFeature
from .models import ( from .models import (
A, B, C, D, Address, Board, CharLink, Company, Contact, Content, Developer, A, Address, B, Board, C, CharLink, Company, Contact, Content, D, Developer,
Guild, HasLinkThing, Link, Node, Note, OddRelation1, OddRelation2, Guild, HasLinkThing, Link, Node, Note, OddRelation1, OddRelation2,
Organization, Person, Place, Related, Restaurant, Tag, Team, TextLink, Organization, Person, Place, Related, Restaurant, Tag, Team, TextLink,
) )

View File

@ -5,7 +5,7 @@ and conversions. Here are some tests.
import unittest import unittest
from django.contrib.gis.measure import A, D, Area, Distance from django.contrib.gis.measure import A, Area, D, Distance
class DistanceTest(unittest.TestCase): class DistanceTest(unittest.TestCase):

View File

@ -9,7 +9,7 @@ from operator import attrgetter
from django.core.exceptions import FieldError from django.core.exceptions import FieldError
from django.db import DEFAULT_DB_ALIAS, connection from django.db import DEFAULT_DB_ALIAS, connection
from django.db.models import F, Q, Count from django.db.models import Count, F, Q
from django.db.models.sql.constants import LOUTER from django.db.models.sql.constants import LOUTER
from django.db.models.sql.datastructures import EmptyResultSet from django.db.models.sql.datastructures import EmptyResultSet
from django.db.models.sql.where import EverythingNode, NothingNode, WhereNode from django.db.models.sql.where import EverythingNode, NothingNode, WhereNode
@ -20,7 +20,7 @@ from django.utils.deprecation import RemovedInDjango19Warning
from django.utils.six.moves import range from django.utils.six.moves import range
from .models import ( from .models import (
FK1, X, Annotation, Article, Author, BaseA, Book, CategoryItem, FK1, Annotation, Article, Author, BaseA, Book, CategoryItem,
CategoryRelationship, Celebrity, Channel, Chapter, Child, ChildObjectA, CategoryRelationship, Celebrity, Channel, Chapter, Child, ChildObjectA,
Classroom, Company, Cover, CustomPk, CustomPkTag, Detail, DumbCategory, Classroom, Company, Cover, CustomPk, CustomPkTag, Detail, DumbCategory,
Eaten, Employment, ExtraInfo, Fan, Food, Identifier, Individual, Item, Job, Eaten, Employment, ExtraInfo, Fan, Food, Identifier, Individual, Item, Job,
@ -32,7 +32,7 @@ from .models import (
RelatedIndividual, RelatedObject, Report, ReservedName, Responsibility, RelatedIndividual, RelatedObject, Report, ReservedName, Responsibility,
School, SharedConnection, SimpleCategory, SingleObject, SpecialCategory, School, SharedConnection, SimpleCategory, SingleObject, SpecialCategory,
Staff, StaffUser, Student, Tag, Task, Ticket21203Child, Ticket21203Parent, Staff, StaffUser, Student, Tag, Task, Ticket21203Child, Ticket21203Parent,
Ticket23605A, Ticket23605B, Ticket23605C, TvChef, Valid, Ticket23605A, Ticket23605B, Ticket23605C, TvChef, Valid, X,
) )

View File

@ -4,7 +4,7 @@ from django.test import TestCase
from django.utils import six from django.utils import six
from .models import ( from .models import (
A, B, C, Building, Chick, Child, Class, Client, ClientStatus, Connection, A, B, Building, C, Chick, Child, Class, Client, ClientStatus, Connection,
Country, Device, Enrollment, Hen, Item, Organizer, Person, Port, Country, Device, Enrollment, Hen, Item, Organizer, Person, Port,
SpecialClient, State, Student, TUser, SpecialClient, State, Student, TUser,
) )

View File

@ -2,7 +2,7 @@ from __future__ import unicode_literals
from django.test import TestCase from django.test import TestCase
from .models import A, B, D, Bar, DataPoint, Foo, RelatedPoint from .models import A, B, Bar, D, DataPoint, Foo, RelatedPoint
class SimpleTest(TestCase): class SimpleTest(TestCase):