Fix a migration exception

This commit is contained in:
Raphael Michel
2020-02-17 13:30:19 +01:00
parent 8957c2f106
commit 5f65b9528f

View File

@@ -11,7 +11,7 @@ from pretix.base.banlist import banned
from pretix.base.models import LoggedModel from pretix.base.models import LoggedModel
def gen_giftcard_secret(length): def gen_giftcard_secret(length=8):
charset = list('ABCDEFGHJKLMNPQRSTUVWXYZ3789') charset = list('ABCDEFGHJKLMNPQRSTUVWXYZ3789')
while True: while True:
code = get_random_string(length=length, allowed_chars=charset) code = get_random_string(length=length, allowed_chars=charset)