Skip to content
Snippets Groups Projects
Commit ee6af9ef authored by Martin Mareš's avatar Martin Mareš
Browse files

ImportForm nabízí jen některé typy importů

parent 7d95a8cd
No related branches found
No related tags found
1 merge request!32Dávkové bodování
This commit is part of merge request !30. Comments created here will be created in the context of that merge request.
...@@ -32,7 +32,8 @@ class ImportForm(FlaskForm): ...@@ -32,7 +32,8 @@ class ImportForm(FlaskForm):
file = flask_wtf.file.FileField("Soubor") file = flask_wtf.file.FileField("Soubor")
typ = wtforms.SelectField( typ = wtforms.SelectField(
"Typ dat", "Typ dat",
choices=ImportType.choices(), coerce=ImportType.coerce, choices=[(x.name, x.friendly_name()) for x in (ImportType.participants, ImportType.proctors, ImportType.judges)],
coerce=ImportType.coerce,
default=ImportType.participants, default=ImportType.participants,
) )
fmt = wtforms.SelectField( fmt = wtforms.SelectField(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment