Fixing Error on sign up
This commit is contained in:
@@ -26,7 +26,7 @@ class ExplorerCreationForm(UserCreationForm):
|
||||
self.add_error('voucher', 'Invalid voucher')
|
||||
return False
|
||||
|
||||
if not fetched_voucher.valid:
|
||||
if not fetched_voucher.valid():
|
||||
self.add_error('voucher', 'Expired voucher')
|
||||
return False
|
||||
|
||||
|
Reference in New Issue
Block a user