summaryrefslogtreecommitdiff
path: root/tests/schema
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-02-09 13:19:34 -0500
committerTim Graham <timograham@gmail.com>2015-02-09 14:24:06 -0500
commita8b70d251d238b4e6cfc7bb4296da15494f8dff3 (patch)
tree94ef5bc53e59131906aecfcf792eeac86242aa62 /tests/schema
parenteb406aa686ff1809903366ef6896037af2f1f69b (diff)
[1.8.x] Sorted imports with isort; refs #23860.
Backport of 0ed7d155635da9f79d4dd67e4889087d3673c6da from master
Diffstat (limited to 'tests/schema')
-rw-r--r--tests/schema/fields.py5
-rw-r--r--tests/schema/tests.py16
2 files changed, 13 insertions, 8 deletions
diff --git a/tests/schema/fields.py b/tests/schema/fields.py
index d4302a6677..4cba35ebf8 100644
--- a/tests/schema/fields.py
+++ b/tests/schema/fields.py
@@ -1,9 +1,8 @@
from django.db.models.fields.related import (
+ RECURSIVE_RELATIONSHIP_CONSTANT, ManyToManyField, ManyToManyRel,
+ RelatedField, ReverseManyRelatedObjectsDescriptor,
create_many_to_many_intermediary_model,
- ManyToManyField, ManyToManyRel, RelatedField,
- RECURSIVE_RELATIONSHIP_CONSTANT, ReverseManyRelatedObjectsDescriptor,
)
-
from django.utils.functional import curry
diff --git a/tests/schema/tests.py b/tests/schema/tests.py
index f6df3e7633..7961ffa36a 100644
--- a/tests/schema/tests.py
+++ b/tests/schema/tests.py
@@ -2,11 +2,17 @@ import datetime
import itertools
import unittest
-from django.db import connection, DatabaseError, IntegrityError, OperationalError
+from django.db import (
+ DatabaseError, IntegrityError, OperationalError, connection,
+)
from django.db.models import Model
-from django.db.models.fields import (BinaryField, BooleanField, CharField, DateTimeField,
- IntegerField, PositiveIntegerField, SlugField, TextField)
-from django.db.models.fields.related import ForeignKey, ManyToManyField, OneToOneField
+from django.db.models.fields import (
+ BinaryField, BooleanField, CharField, DateTimeField, IntegerField,
+ PositiveIntegerField, SlugField, TextField,
+)
+from django.db.models.fields.related import (
+ ForeignKey, ManyToManyField, OneToOneField,
+)
from django.db.transaction import atomic
from django.test import TransactionTestCase
@@ -14,7 +20,7 @@ from .fields import CustomManyToManyField, InheritedManyToManyField
from .models import (
Author, AuthorWithDefaultHeight, AuthorWithEvenLongerName, Book, BookWeak,
BookWithLongName, BookWithO2O, BookWithSlug, Note, Tag, TagIndexed,
- TagM2MTest, TagUniqueRename, Thing, UniqueTest, new_apps
+ TagM2MTest, TagUniqueRename, Thing, UniqueTest, new_apps,
)