Skip to content

Commit 0845edd

Browse files
committed
add index for format for python 2.6
1 parent 83837c0 commit 0845edd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

encrypted_fields/tests.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ class FieldTest(TestCase):
2525
def get_db_value(self, field, model_id):
2626
cursor = connection.cursor()
2727
cursor.execute(
28-
'select {} '
28+
'select {0} '
2929
'from encrypted_fields_testmodel '
30-
'where id = {};'.format(field, model_id)
30+
'where id = {1};'.format(field, model_id)
3131
)
3232
return cursor.fetchone()[0]
3333

0 commit comments

Comments
 (0)