summaryrefslogtreecommitdiff
path: root/django/db/models/__init__.py
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2013-10-18 07:25:30 -0400
committerTim Graham <timograham@gmail.com>2013-11-02 15:24:56 -0400
commit36ded01527b690b5df0574492af9cfcc2ea3d1dc (patch)
tree107e2f542034f13810496fd389972f856efc33f3 /django/db/models/__init__.py
parent9f76ea1eaad0db0183fa3b5bade16392db0cafbd (diff)
downloaddjango-36ded01527b690b5df0574492af9cfcc2ea3d1dc.tar.gz
Fixed #21302 -- Fixed unused imports and import *.
Diffstat (limited to 'django/db/models/__init__.py')
-rw-r--r--django/db/models/__init__.py31
1 files changed, 18 insertions, 13 deletions
diff --git a/django/db/models/__init__.py b/django/db/models/__init__.py
index 2ee525faf1..cf219d39aa 100644
--- a/django/db/models/__init__.py
+++ b/django/db/models/__init__.py
@@ -1,18 +1,23 @@
from functools import wraps
-from django.core.exceptions import ObjectDoesNotExist, ImproperlyConfigured
-from django.db.models.loading import get_apps, get_app_path, get_app_paths, get_app, get_models, get_model, register_models, UnavailableApp
-from django.db.models.query import Q, QuerySet
-from django.db.models.expressions import F
-from django.db.models.manager import Manager
-from django.db.models.base import Model
-from django.db.models.aggregates import *
-from django.db.models.fields import *
-from django.db.models.fields.subclassing import SubfieldBase
-from django.db.models.fields.files import FileField, ImageField
-from django.db.models.fields.related import ForeignKey, ForeignObject, OneToOneField, ManyToManyField, ManyToOneRel, ManyToManyRel, OneToOneRel
-from django.db.models.deletion import CASCADE, PROTECT, SET, SET_NULL, SET_DEFAULT, DO_NOTHING, ProtectedError
-from django.db.models import signals
+from django.core.exceptions import ObjectDoesNotExist, ImproperlyConfigured # NOQA
+from django.db.models.loading import ( # NOQA
+ get_apps, get_app_path, get_app_paths, get_app, get_models, get_model,
+ register_models, UnavailableApp)
+from django.db.models.query import Q, QuerySet # NOQA
+from django.db.models.expressions import F # NOQA
+from django.db.models.manager import Manager # NOQA
+from django.db.models.base import Model # NOQA
+from django.db.models.aggregates import * # NOQA
+from django.db.models.fields import * # NOQA
+from django.db.models.fields.subclassing import SubfieldBase # NOQA
+from django.db.models.fields.files import FileField, ImageField # NOQA
+from django.db.models.fields.related import ( # NOQA
+ ForeignKey, ForeignObject, OneToOneField, ManyToManyField,
+ ManyToOneRel, ManyToManyRel, OneToOneRel)
+from django.db.models.deletion import ( # NOQA
+ CASCADE, PROTECT, SET, SET_NULL, SET_DEFAULT, DO_NOTHING, ProtectedError)
+from django.db.models import signals # NOQA
def permalink(func):