Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use a name that exists in both python2 and 3,

  • Loading branch information...
commit c7734491f87ac711ff5d749213e8cac0adb3686b 1 parent e0ec750
@alex alex authored Alex Gaynor committed
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
Please sign in to comment.
Something went wrong with that request. Please try again.