Manishv005 / AgileWebDevProject35

0 stars 0 forks source link

Fixes storing word in DB word table. #34

Closed nishandevkar closed 5 months ago

nishandevkar commented 5 months ago

Fixes redirection on validation of form on Create route.

kumars21 commented 5 months ago

@nishandevkar It seems there is a merge conflict there.

Which one we are planning to keep

  1. validate_choice=False: then we can us the following word = SelectField('word', choices=[('', 'Select a Word')], validate_choice=False)

  2. validators=[DataRequired()] then we can use

word = SelectField('word', choices=[('', 'Select a Word')], validators=[DataRequired()])

or if we planning to keep both options then we can try the following.

word = SelectField('word', choices=[('', 'Select a Word')], validate_choice=False, validators=[DataRequired()])