Fix ID generation

This commit is contained in:
jakzo 2019-07-14 16:37:54 +00:00
parent 396cb39676
commit 9633917aec

View File

@ -1,9 +1,10 @@
from __future__ import unicode_literals
import six
import random
import string
def create_id():
size = 10
chars = list(range(10)) + ['A-Z']
chars = list(range(10)) + list(string.ascii_lowercase)
return ''.join(six.text_type(random.choice(chars)) for x in range(size))