From 0ed7d155635da9f79d4dd67e4889087d3673c6da Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Wed, 28 Jan 2015 07:35:27 -0500 Subject: Sorted imports with isort; refs #23860. --- tests/model_meta/models.py | 7 ++++--- tests/model_meta/results.py | 4 +--- tests/model_meta/test_legacy.py | 2 +- tests/model_meta/tests.py | 12 +++++++----- 4 files changed, 13 insertions(+), 12 deletions(-) (limited to 'tests/model_meta') diff --git a/tests/model_meta/models.py b/tests/model_meta/models.py index b4ed9f89d2..6ce36ed9d6 100644 --- a/tests/model_meta/models.py +++ b/tests/model_meta/models.py @@ -1,7 +1,8 @@ -from django.db import models - -from django.contrib.contenttypes.fields import GenericForeignKey, GenericRelation +from django.contrib.contenttypes.fields import ( + GenericForeignKey, GenericRelation, +) from django.contrib.contenttypes.models import ContentType +from django.db import models class Relation(models.Model): diff --git a/tests/model_meta/results.py b/tests/model_meta/results.py index 1efc49ed23..d70963206f 100644 --- a/tests/model_meta/results.py +++ b/tests/model_meta/results.py @@ -1,6 +1,4 @@ -from .models import ( - AbstractPerson, BasePerson, Person, Relating, Relation, -) +from .models import AbstractPerson, BasePerson, Person, Relating, Relation TEST_RESULTS = { 'get_all_field_names': { diff --git a/tests/model_meta/test_legacy.py b/tests/model_meta/test_legacy.py index 60bfb1641f..c319f28fcc 100644 --- a/tests/model_meta/test_legacy.py +++ b/tests/model_meta/test_legacy.py @@ -3,7 +3,7 @@ import warnings from django import test from django.contrib.contenttypes.fields import GenericRelation from django.core.exceptions import FieldDoesNotExist -from django.db.models.fields import related, CharField +from django.db.models.fields import CharField, related from django.utils.deprecation import RemovedInDjango20Warning from .models import BasePerson, Person diff --git a/tests/model_meta/tests.py b/tests/model_meta/tests.py index 36b65f5ab8..4a08b408c6 100644 --- a/tests/model_meta/tests.py +++ b/tests/model_meta/tests.py @@ -1,13 +1,15 @@ from django.apps import apps -from django.contrib.contenttypes.fields import GenericForeignKey, GenericRelation +from django.contrib.contenttypes.fields import ( + GenericForeignKey, GenericRelation, +) from django.core.exceptions import FieldDoesNotExist -from django.db.models.fields import related, CharField, Field -from django.db.models.options import IMMUTABLE_WARNING, EMPTY_RELATION_TREE +from django.db.models.fields import CharField, Field, related +from django.db.models.options import EMPTY_RELATION_TREE, IMMUTABLE_WARNING from django.test import TestCase from .models import ( - Relation, AbstractPerson, BasePerson, Person, ProxyPerson, Relating, - CommonAncestor, FirstParent, SecondParent, Child + AbstractPerson, BasePerson, Child, CommonAncestor, FirstParent, Person, + ProxyPerson, Relating, Relation, SecondParent, ) from .results import TEST_RESULTS -- cgit v1.3