flake8 fixes.
This commit is contained in:
parent
b0d032f9fc
commit
45c2d1f5d9
|
@ -5,9 +5,6 @@ import sys
|
||||||
from django.apps import apps
|
from django.apps import apps
|
||||||
from django.db.migrations.recorder import MigrationRecorder
|
from django.db.migrations.recorder import MigrationRecorder
|
||||||
from django.db.migrations.graph import MigrationGraph
|
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.utils import six
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
|
|
||||||
|
|
|
@ -196,7 +196,7 @@ def translation(language):
|
||||||
Returns a translation object.
|
Returns a translation object.
|
||||||
"""
|
"""
|
||||||
global _translations
|
global _translations
|
||||||
if not language in _translations:
|
if language not in _translations:
|
||||||
_translations[language] = DjangoTranslation(language)
|
_translations[language] = DjangoTranslation(language)
|
||||||
return _translations[language]
|
return _translations[language]
|
||||||
|
|
||||||
|
|
|
@ -347,6 +347,7 @@ class StateTests(TestCase):
|
||||||
|
|
||||||
class TestModel(models.Model):
|
class TestModel(models.Model):
|
||||||
ct = models.ForeignKey("contenttypes.ContentType")
|
ct = models.ForeignKey("contenttypes.ContentType")
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
app_label = "migrations"
|
app_label = "migrations"
|
||||||
apps = new_apps
|
apps = new_apps
|
||||||
|
|
Loading…
Reference in New Issue