mirror of
https://github.com/django/django.git
synced 2025-03-31 03:30:46 +00:00
flake8 fix
This commit is contained in:
parent
3411af3cd1
commit
7349a22d29
@ -676,7 +676,7 @@ class SchemaTests(TransactionTestCase):
|
|||||||
editor.create_model(BookWithLongName)
|
editor.create_model(BookWithLongName)
|
||||||
# Find the properly shortened column name
|
# Find the properly shortened column name
|
||||||
column_name = connection.ops.quote_name("author_foreign_key_with_really_long_field_name_id")
|
column_name = connection.ops.quote_name("author_foreign_key_with_really_long_field_name_id")
|
||||||
column_name = column_name[1:-1].lower() # unquote, and, for Oracle, un-upcase
|
column_name = column_name[1:-1].lower() # unquote, and, for Oracle, un-upcase
|
||||||
# Ensure the table is there and has an index on the column
|
# Ensure the table is there and has an index on the column
|
||||||
self.assertIn(
|
self.assertIn(
|
||||||
column_name,
|
column_name,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user