Skip to content
Snippets Groups Projects
Commit b2dc4522 authored by Jiří Setnička's avatar Jiří Setnička
Browse files

Org round: Přidáno scházející coerce

Pro správný převod hodnot z formuláře zpět na Enum.
parent a698b722
No related branches found
No related tags found
1 merge request!9WIP: Zárodek uživatelské části webu a submitování
...@@ -247,7 +247,7 @@ def org_round_import(id: int): ...@@ -247,7 +247,7 @@ def org_round_import(id: int):
class RoundEditForm(FlaskForm): class RoundEditForm(FlaskForm):
state = wtforms.SelectField("Stav kola", choices=db.RoundState.choices()) state = wtforms.SelectField("Stav kola", choices=db.RoundState.choices(), coerce=db.RoundState.coerce)
# Only the desktop Firefox does not support datetime-local field nowadays, # Only the desktop Firefox does not support datetime-local field nowadays,
# other browsers does provide date and time picker UI :( # other browsers does provide date and time picker UI :(
tasks_file = wtforms.StringField("Soubor se zadáním", description="Cesta k ručně uploadovanému souboru") tasks_file = wtforms.StringField("Soubor se zadáním", description="Cesta k ručně uploadovanému souboru")
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment