mirror of
https://github.com/django/django.git
synced 2024-12-01 15:42:04 +01:00
Fixed a small collection of flake8 violations that had snuck in
This commit is contained in:
parent
d818e0c9b2
commit
be8173af51
@ -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
|
||||
|
||||
|
||||
|
@ -18,7 +18,6 @@ from django.utils.deprecation import RenameMethodsBase
|
||||
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'
|
||||
|
@ -218,7 +218,7 @@ class OperationTests(MigrationTestBase):
|
||||
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:
|
||||
|
@ -35,6 +35,7 @@ class StateTests(TestCase):
|
||||
|
||||
class SubAuthor(Author):
|
||||
width = models.FloatField(null=True)
|
||||
|
||||
class Meta:
|
||||
app_label = "migrations"
|
||||
apps = new_apps
|
||||
|
Loading…
Reference in New Issue
Block a user