Fixed a small collection of flake8 violations that had snuck in

This commit is contained in:
Alex Gaynor 2014-01-19 21:15:31 -06:00
parent d818e0c9b2
commit be8173af51
4 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import unicode_literals 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 from django.core import checks

View File

@ -18,7 +18,6 @@ from django.utils.deprecation import RenameMethodsBase
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ugettext_lazy as _
from django.utils.functional import curry, cached_property from django.utils.functional import curry, cached_property
from django.core import exceptions from django.core import exceptions
from django.apps import apps
from django import forms from django import forms
RECURSIVE_RELATIONSHIP_CONSTANT = 'self' RECURSIVE_RELATIONSHIP_CONSTANT = 'self'

View File

@ -218,7 +218,7 @@ class OperationTests(MigrationTestBase):
self.assertEqual(field.default, NOT_PROVIDED) self.assertEqual(field.default, NOT_PROVIDED)
# Test the database alteration # Test the database alteration
project_state.render().get_model("test_adflpd", "pony").objects.create( project_state.render().get_model("test_adflpd", "pony").objects.create(
weight = 4, weight=4,
) )
self.assertColumnNotExists("test_adflpd_pony", "height") self.assertColumnNotExists("test_adflpd_pony", "height")
with connection.schema_editor() as editor: with connection.schema_editor() as editor:

View File

@ -35,6 +35,7 @@ class StateTests(TestCase):
class SubAuthor(Author): class SubAuthor(Author):
width = models.FloatField(null=True) width = models.FloatField(null=True)
class Meta: class Meta:
app_label = "migrations" app_label = "migrations"
apps = new_apps apps = new_apps