forked from CGM_Public/pretix_original
Fix a migration exception
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user