Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Use a name that exists in both python2 and 3,

  • Loading branch information...
commit c7734491f87ac711ff5d749213e8cac0adb3686b 1 parent e0ec750
Alex Gaynor authored August 15, 2012 Alex Gaynor committed August 15, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  tests/modeltests/custom_pk/fields.py
2  tests/modeltests/custom_pk/fields.py
@@ -31,7 +31,7 @@ def __init__(self, *args, **kwargs):
31 31
     def pre_save(self, instance, add):
32 32
         value = getattr(instance, self.attname, None)
33 33
         if not value:
34  
-            value = MyWrapper(''.join(random.sample(string.lowercase, 10)))
  34
+            value = MyWrapper(''.join(random.sample(string.ascii_lowercase, 10)))
35 35
             setattr(instance, self.attname, value)
36 36
         return value
37 37
 

0 notes on commit c773449

Please sign in to comment.
Something went wrong with that request. Please try again.