flake8 fixes.

This commit is contained in:
Tim Graham 2014-04-30 18:33:46 -04:00
parent b0d032f9fc
commit 45c2d1f5d9
3 changed files with 2 additions and 4 deletions

View File

@ -5,9 +5,6 @@ import sys
from django.apps import apps
from django.db.migrations.recorder import MigrationRecorder
from django.db.migrations.graph import MigrationGraph
from django.db.migrations.migration import Migration
from django.db.migrations.state import ModelState
from django.db.migrations import operations
from django.utils import six
from django.conf import settings

View File

@ -196,7 +196,7 @@ def translation(language):
Returns a translation object.
"""
global _translations
if not language in _translations:
if language not in _translations:
_translations[language] = DjangoTranslation(language)
return _translations[language]

View File

@ -347,6 +347,7 @@ class StateTests(TestCase):
class TestModel(models.Model):
ct = models.ForeignKey("contenttypes.ContentType")
class Meta:
app_label = "migrations"
apps = new_apps