From 0c2b1a4699440b931ea07d80023b2f22e58bcad9 Mon Sep 17 00:00:00 2001 From: Commander1024 Date: Thu, 10 Sep 2020 00:25:44 +0200 Subject: [PATCH] voucher form length now matches voucher model length. --- lostplaces/lostplaces_app/forms.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lostplaces/lostplaces_app/forms.py b/lostplaces/lostplaces_app/forms.py index 9b97388..1346a2a 100644 --- a/lostplaces/lostplaces_app/forms.py +++ b/lostplaces/lostplaces_app/forms.py @@ -11,7 +11,10 @@ class ExplorerCreationForm(UserCreationForm): class Meta: model = Explorer fields = ('username', 'email') - voucher = forms.CharField(max_length=10, help_text='The Voucher you got from an administrator') + voucher = forms.CharField( + max_length=30, + help_text='The Voucher you got from an administrator' + ) def is_valid(self): super().is_valid() @@ -49,7 +52,6 @@ class PlaceImageCreateForm(forms.ModelForm): self.fields['filename'].required = False - class TagSubmitForm(forms.Form): tag_list = forms.CharField( max_length=500,