From 76b514e1e67a5a04e1e5a58ed281bdcee285b95f Mon Sep 17 00:00:00 2001 From: reverend Date: Sun, 4 Oct 2020 15:42:06 +0200 Subject: [PATCH] #40 Hotfix Error when signing 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 9ce88d3..a770ef2 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 submitted_voucher.valid: + if not fetched_voucher.valid: self.add_error('voucher', 'Expired voucher') return False