voucher form length now matches voucher model length.

This commit is contained in:
Marcus Scholz 2020-09-10 00:25:44 +02:00
parent 240b61f428
commit 0c2b1a4699

View File

@ -11,7 +11,10 @@ class ExplorerCreationForm(UserCreationForm):
class Meta: class Meta:
model = Explorer model = Explorer
fields = ('username', 'email') 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): def is_valid(self):
super().is_valid() super().is_valid()
@ -49,7 +52,6 @@ class PlaceImageCreateForm(forms.ModelForm):
self.fields['filename'].required = False self.fields['filename'].required = False
class TagSubmitForm(forms.Form): class TagSubmitForm(forms.Form):
tag_list = forms.CharField( tag_list = forms.CharField(
max_length=500, max_length=500,