Skip to content

Instantly share code, notes, and snippets.

@mrf345
Created December 6, 2018 02:30
Show Gist options
  • Save mrf345/72c8f3938abf2bc2e085e123916044dc to your computer and use it in GitHub Desktop.
Save mrf345/72c8f3938abf2bc2e085e123916044dc to your computer and use it in GitHub Desktop.
Modified form without translation
class Touch_name(FlaskForm):
name = SelectField(coerce=str)
submit = SubmitField("Register")
def __init__(self, defLang='en', *args, **kwargs):
super(Touch_name, self).__init__(*args, **kwargs)
self.name.label = "Select one of the following options :"
self.name.choices = [
("First option", "First option"),
("Second option", "Second option"),
("Third option", "Third option")]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment