diff --git a/ecommerce/extensions/voucher/utils.py b/ecommerce/extensions/voucher/utils.py index cac75afca9f..99f57a54a28 100644 --- a/ecommerce/extensions/voucher/utils.py +++ b/ecommerce/extensions/voucher/utils.py @@ -536,7 +536,7 @@ def create_new_voucher(code, end_datetime, name, start_datetime, voucher_type): if not isinstance(end_datetime, datetime.datetime): end_datetime = dateutil.parser.parse(end_datetime) - + voucher = Voucher.objects.last() if voucher: name = name + str(voucher.id)