diff options
| author | Tim Graham <timograham@gmail.com> | 2015-02-09 13:19:34 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-02-09 14:24:06 -0500 |
| commit | a8b70d251d238b4e6cfc7bb4296da15494f8dff3 (patch) | |
| tree | 94ef5bc53e59131906aecfcf792eeac86242aa62 /tests/model_meta | |
| parent | eb406aa686ff1809903366ef6896037af2f1f69b (diff) | |
[1.8.x] Sorted imports with isort; refs #23860.
Backport of 0ed7d155635da9f79d4dd67e4889087d3673c6da from master
Diffstat (limited to 'tests/model_meta')
| -rw-r--r-- | tests/model_meta/models.py | 7 | ||||
| -rw-r--r-- | tests/model_meta/results.py | 4 | ||||
| -rw-r--r-- | tests/model_meta/test_legacy.py | 2 | ||||
| -rw-r--r-- | tests/model_meta/tests.py | 12 |
4 files changed, 13 insertions, 12 deletions
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 |
