diff --git a/smash/web/forms/voucher_forms.py b/smash/web/forms/voucher_forms.py index defa1698ed46e6e1f5de83a94550b751178fef10..efb1c590c9f7d526d172a7c332d1ed8cebb4bd03 100644 --- a/smash/web/forms/voucher_forms.py +++ b/smash/web/forms/voucher_forms.py @@ -66,7 +66,7 @@ class VoucherForm(ModelForm): instance = super(VoucherForm, self).save(commit=False) if not instance.id: instance.issue_date = timezone.now() - instance.expiry_date = instance.issue_date + datetime.timedelta(days=92) + instance.expiry_date = instance.issue_date + datetime.timedelta(days=90) max_id = str(1).zfill(5) if Voucher.objects.all().count() > 0: max_id = str(Voucher.objects.latest('id').id + 1).zfill(5)