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/proxy_models/admin.py | 2 +- tests/proxy_models/models.py | 1 + tests/proxy_models/tests.py | 16 ++++++++-------- tests/proxy_models/urls.py | 1 - 4 files changed, 10 insertions(+), 10 deletions(-) (limited to 'tests/proxy_models') diff --git a/tests/proxy_models/admin.py b/tests/proxy_models/admin.py index d2b6319301..72556c34a5 100644 --- a/tests/proxy_models/admin.py +++ b/tests/proxy_models/admin.py @@ -1,6 +1,6 @@ from django.contrib import admin -from .models import TrackerUser, ProxyTrackerUser +from .models import ProxyTrackerUser, TrackerUser admin.site.register(TrackerUser) admin.site.register(ProxyTrackerUser) diff --git a/tests/proxy_models/models.py b/tests/proxy_models/models.py index 2e28c3b996..90a542ffac 100644 --- a/tests/proxy_models/models.py +++ b/tests/proxy_models/models.py @@ -7,6 +7,7 @@ providing a modified interface to the data from the base class. from django.db import models from django.utils.encoding import python_2_unicode_compatible + # A couple of managers for testing managing overriding in proxy model cases. diff --git a/tests/proxy_models/tests.py b/tests/proxy_models/tests.py index 131bd1524f..17d139bbeb 100644 --- a/tests/proxy_models/tests.py +++ b/tests/proxy_models/tests.py @@ -3,18 +3,18 @@ from __future__ import unicode_literals from django.apps import apps from django.contrib import admin from django.contrib.contenttypes.models import ContentType -from django.core import management -from django.core import checks -from django.db import models, DEFAULT_DB_ALIAS +from django.core import checks, management +from django.db import DEFAULT_DB_ALIAS, models from django.db.models import signals from django.test import TestCase, override_settings - -from .models import (MyPerson, Person, StatusPerson, LowerStatusPerson, - MyPersonProxy, Abstract, OtherPerson, User, UserProxy, UserProxyProxy, - Country, State, StateProxy, TrackerUser, BaseUser, Bug, ProxyTrackerUser, - Improvement, ProxyProxyBug, ProxyBug, ProxyImprovement, Issue) from .admin import admin as force_admin_model_registration # NOQA +from .models import ( + Abstract, BaseUser, Bug, Country, Improvement, Issue, LowerStatusPerson, + MyPerson, MyPersonProxy, OtherPerson, Person, ProxyBug, ProxyImprovement, + ProxyProxyBug, ProxyTrackerUser, State, StateProxy, StatusPerson, + TrackerUser, User, UserProxy, UserProxyProxy, +) class ProxyModelTests(TestCase): diff --git a/tests/proxy_models/urls.py b/tests/proxy_models/urls.py index 6fcf1e055b..eb91d283d4 100644 --- a/tests/proxy_models/urls.py +++ b/tests/proxy_models/urls.py @@ -1,5 +1,4 @@ from django.conf.urls import include, url - from django.contrib import admin urlpatterns = [ -- cgit v1.2.1