Skip to content

Commit

Permalink
add index for format for python 2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
defrex committed Jul 12, 2013
1 parent 83837c0 commit 0845edd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions encrypted_fields/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ class FieldTest(TestCase):
def get_db_value(self, field, model_id):
cursor = connection.cursor()
cursor.execute(
'select {} '
'select {0} '
'from encrypted_fields_testmodel '
'where id = {};'.format(field, model_id)
'where id = {1};'.format(field, model_id)
)
return cursor.fetchone()[0]

Expand Down

0 comments on commit 0845edd

Please sign in to comment.