Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed a small collection of flake8 violations that had snuck in

  • Loading branch information...
commit be8173af513dfb86edf8fc2fd981cc9ce101229e 1 parent d818e0c
@alex alex authored
View
2  django/contrib/contenttypes/__init__.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
-from django.contrib.contenttypes.checks import check_generic_foreign_keys
+from django.contrib.contenttypes.checks import check_generic_foreign_keys
from django.core import checks
View
1  django/db/models/fields/related.py
@@ -18,7 +18,6 @@
from django.utils.translation import ugettext_lazy as _
from django.utils.functional import curry, cached_property
from django.core import exceptions
-from django.apps import apps
from django import forms
RECURSIVE_RELATIONSHIP_CONSTANT = 'self'
View
2  tests/migrations/test_operations.py
@@ -218,7 +218,7 @@ def test_add_field_preserve_default(self):
self.assertEqual(field.default, NOT_PROVIDED)
# Test the database alteration
project_state.render().get_model("test_adflpd", "pony").objects.create(
- weight = 4,
+ weight=4,
)
self.assertColumnNotExists("test_adflpd_pony", "height")
with connection.schema_editor() as editor:
View
1  tests/migrations/test_state.py
@@ -35,6 +35,7 @@ class Meta:
class SubAuthor(Author):
width = models.FloatField(null=True)
+
class Meta:
app_label = "migrations"
apps = new_apps
Please sign in to comment.
Something went wrong with that request. Please try again.