Permalink
Browse files

Use a name that exists in both python2 and 3,

  • Loading branch information...
1 parent e0ec750 commit c7734491f87ac711ff5d749213e8cac0adb3686b @alex alex committed with Alex Gaynor Aug 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/modeltests/custom_pk/fields.py
View
2 tests/modeltests/custom_pk/fields.py
@@ -31,7 +31,7 @@ def __init__(self, *args, **kwargs):
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

0 comments on commit c773449

Please sign in to comment.