Skip to content

Commit

Permalink
Increase char limit for note field answer in form to 100 (was already…
Browse files Browse the repository at this point in the history
… set to 100 in model)
  • Loading branch information
Compizfox committed Jan 24, 2018
1 parent d9a8e8c commit c9b7b50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/forms/RegistrationForm.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def __init__(self, event, data=None, initial=None, instance=None):
# Add CharField or ChoiceField depending if note options are set in event
if event.note_field != '':
if not event.note_field_options:
self.fields['note'] = forms.CharField(max_length=25, label=event.note_field, required=event.note_field_required)
self.fields['note'] = forms.CharField(max_length=100, label=event.note_field, required=event.note_field_required)
else:
self.fields['note'] = forms.ChoiceField(choices=event.get_note_field_options(), label=event.note_field, required=event.note_field_required)

Expand Down

0 comments on commit c9b7b50

Please sign in to comment.