summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2012-08-15 01:12:45 -0700
committerAlex Gaynor <alex.gaynor@rd.io>2012-08-15 01:13:09 -0700
commitc7734491f87ac711ff5d749213e8cac0adb3686b (patch)
tree28b703e9ebb5585a7378b386b8e47c3afcc46e47
parente0ec7507ac6c9e08ddbdf8a3ddedc430b22c7be9 (diff)
Use a name that exists in both python2 and 3,
-rw-r--r--tests/modeltests/custom_pk/fields.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/modeltests/custom_pk/fields.py b/tests/modeltests/custom_pk/fields.py
index 2494d5fd2c..92096a0ff7 100644
--- a/tests/modeltests/custom_pk/fields.py
+++ b/tests/modeltests/custom_pk/fields.py
@@ -31,7 +31,7 @@ class MyAutoField(six.with_metaclass(models.SubfieldBase, models.CharField)):
def pre_save(self, instance, add):
value = getattr(instance, self.attname, None)
if not value:
- value = MyWrapper(''.join(random.sample(string.lowercase, 10)))
+ value = MyWrapper(''.join(random.sample(string.ascii_lowercase, 10)))
setattr(instance, self.attname, value)
return value