Fixing Error on sign up
This commit is contained in:
parent
773390b09f
commit
4e366d94c9
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user