From 0845eddc933e439fba77083c0668a3bcf74f975e Mon Sep 17 00:00:00 2001 From: Aron Jones Date: Fri, 12 Jul 2013 13:45:13 -0400 Subject: [PATCH] add index for format for python 2.6 --- encrypted_fields/tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/encrypted_fields/tests.py b/encrypted_fields/tests.py index 7c76cf1..6d04ed6 100644 --- a/encrypted_fields/tests.py +++ b/encrypted_fields/tests.py @@ -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]