Fixing Error on sign up

This commit is contained in:
reverend 2020-10-06 22:53:35 +02:00
parent 773390b09f
commit 4e366d94c9

View File

@ -26,7 +26,7 @@ class ExplorerCreationForm(UserCreationForm):
self.add_error('voucher', 'Invalid voucher') self.add_error('voucher', 'Invalid voucher')
return False return False
if not fetched_voucher.valid: if not fetched_voucher.valid():
self.add_error('voucher', 'Expired voucher') self.add_error('voucher', 'Expired voucher')
return False return False