Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed three small flake8 violations.

  • Loading branch information...
commit a248c88372fa445c1159511fae2b98208f149f69 1 parent 3e25c8a
@alex alex authored
View
2  django/db/migrations/state.py
@@ -166,7 +166,7 @@ def flatten_bases(model):
# __bases__ we may end up with duplicates and ordering issues, we
# therefore discard any duplicates and reorder the bases according
# to their index in the MRO.
- flattened_bases = sorted(set(flatten_bases(model)), key=lambda x:model.__mro__.index(x))
+ flattened_bases = sorted(set(flatten_bases(model)), key=lambda x: model.__mro__.index(x))
# Make our record
bases = tuple(
View
1  tests/migrations/test_operations.py
@@ -582,6 +582,7 @@ def create_shetlandponies(models, schema_editor):
self.assertEqual(project_state.render().get_model("test_runpython", "Pony").objects.count(), 6)
self.assertEqual(project_state.render().get_model("test_runpython", "ShetlandPony").objects.count(), 2)
+
class MigrateNothingRouter(object):
"""
A router that sends all writes to the other database.
View
4 tests/modeladmin/tests.py
@@ -867,8 +867,8 @@ class ValidationTestModelAdmin(ModelAdmin):
self.assertIsInvalid(
ValidationTestModelAdmin, ValidationTestModel,
- ("The value of 'radio_fields' refers to 'name', which is not an instance "
- "of ForeignKey, and does not have a 'choices' definition."),
+ ("The value of 'radio_fields' refers to 'name', which is not an instance "
+ "of ForeignKey, and does not have a 'choices' definition."),
'admin.E023')
def test_invalid_value(self):
Please sign in to comment.
Something went wrong with that request. Please try again.