Skip to content

Commit

Permalink
Fixed a small collection of flake8 violations that had snuck in
Browse files Browse the repository at this point in the history
  • Loading branch information
alex committed Jan 20, 2014
1 parent d818e0c commit be8173a
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion django/contrib/contenttypes/__init__.py
Original file line number Diff line number Diff line change
@@ -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


Expand Down
1 change: 0 additions & 1 deletion django/db/models/fields/related.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion tests/migrations/test_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions tests/migrations/test_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class Meta:

class SubAuthor(Author):
width = models.FloatField(null=True)

class Meta:
app_label = "migrations"
apps = new_apps
Expand Down

0 comments on commit be8173a

Please sign in to comment.