Commits

Anonymous committed aacbf6d

Test commit

  • Participants
  • Parent commits a914281

Comments (0)

Files changed (1)

tests/modeltests/custom_pk/fields.py

     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