summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2014-03-08 16:17:54 -0800
committerAlex Gaynor <alex.gaynor@gmail.com>2014-03-08 16:17:54 -0800
commitadd1584bfa89cec574491bd42af7039d4869afd3 (patch)
tree7a24a81599a00d3282279f9da21cb7e37f8ad2bf
parentabccbcf52da4a0f0c388b8a770b5de04d6d6e64c (diff)
4 flake8 warning fixes
-rw-r--r--django/db/models/sql/query.py3
-rw-r--r--tests/admin_checks/models.py1
-rw-r--r--tests/field_deconstruction/tests.py1
3 files changed, 2 insertions, 3 deletions
diff --git a/django/db/models/sql/query.py b/django/db/models/sql/query.py
index 5b27c885d7..28003611ff 100644
--- a/django/db/models/sql/query.py
+++ b/django/db/models/sql/query.py
@@ -17,7 +17,6 @@ from django.db.models.constants import LOOKUP_SEP
from django.db.models.aggregates import refs_aggregate
from django.db.models.expressions import ExpressionNode
from django.db.models.fields import FieldDoesNotExist
-from django.db.models.lookups import Transform
from django.db.models.query_utils import Q
from django.db.models.related import PathInfo
from django.db.models.sql import aggregates as base_aggregates_module
@@ -28,7 +27,7 @@ from django.db.models.sql.expressions import SQLEvaluator
from django.db.models.sql.where import (WhereNode, Constraint, EverythingNode,
ExtraWhere, AND, OR, EmptyWhere)
from django.utils import six
-from django.utils.deprecation import RemovedInDjango19Warning
+from django.utils.deprecation import RemovedInDjango19Warning
from django.utils.encoding import force_text
from django.utils.tree import Node
diff --git a/tests/admin_checks/models.py b/tests/admin_checks/models.py
index 3cbb7fb49e..6c34d95ab8 100644
--- a/tests/admin_checks/models.py
+++ b/tests/admin_checks/models.py
@@ -7,6 +7,7 @@ from django.utils.encoding import python_2_unicode_compatible
from django.contrib.contenttypes.models import ContentType
from django.contrib.contenttypes.fields import GenericForeignKey
+
class Album(models.Model):
title = models.CharField(max_length=150)
diff --git a/tests/field_deconstruction/tests.py b/tests/field_deconstruction/tests.py
index 26ceb4e0cf..f7afec536a 100644
--- a/tests/field_deconstruction/tests.py
+++ b/tests/field_deconstruction/tests.py
@@ -318,4 +318,3 @@ class FieldDeconstructionTests(TestCase):
self.assertEqual(path, "django.db.models.URLField")
self.assertEqual(args, [])
self.assertEqual(kwargs, {"max_length": 231})
-