From 4e366d94c99e5300bf3d28b63ff9affe264cc8ea Mon Sep 17 00:00:00 2001 From: reverend Date: Tue, 6 Oct 2020 22:53:35 +0200 Subject: [PATCH] Fixing Error on sign up --- django_lostplaces/lostplaces/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django_lostplaces/lostplaces/forms.py b/django_lostplaces/lostplaces/forms.py index a770ef2..b391316 100644 --- a/django_lostplaces/lostplaces/forms.py +++ b/django_lostplaces/lostplaces/forms.py @@ -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