Skip to content
Snippets Groups Projects
Commit b62ea942 authored by Clement Dekeister's avatar Clement Dekeister
Browse files

file_format fix

parent d5701628
No related branches found
No related tags found
No related merge requests found
......@@ -88,11 +88,7 @@ def validate_choice(form, field):
raise ValidationError("indiquez le format du fichier attendu")
# Utilisation
file_format = MultiCheckboxField(
"Format de fichier",
choices=[("pdf", "pdf"), ("xls", "xls")],
validators=[validate_choice],
)
def _get_group_info(evaluation_id):
# groupes
groups = sco_groups.do_evaluation_listegroupes(evaluation_id, include_default=True)
......@@ -116,6 +112,12 @@ def _get_group_info(evaluation_id):
class PlacementForm(FlaskForm):
"""Formulaire pour placement des étudiants en Salle"""
file_format = MultiCheckboxField(
"Format de fichier",
choices=[("pdf", "pdf"), ("xls", "xls")],
validators=[validate_choice],
)
evaluation_id = HiddenField("evaluation_id")
surveillants = StringField("Surveillants", validators=[])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment