Skip to content

Commit

Permalink
Liste corsi
Browse files Browse the repository at this point in the history
  • Loading branch information
Burlesco70 committed Dec 17, 2020
1 parent 53b8174 commit 7ac7af2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion project/serate/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ class SerataForm(FlaskForm):
def __init__(self, *args, **kwargs):
super(SerataForm, self).__init__(*args, **kwargs)
# Caricamento scelte listbox corsi
choices = [("0", "Nessun corso abbinato alla serata")]
# choices = [("0", "Nessun corso abbinato alla serata")]
choices = []
for c in (Corso.query.order_by(asc(Corso.nome)).all()):
choices.append((c.id, c.nome))
self.select_corsi.choices = choices

0 comments on commit 7ac7af2

Please sign in to comment.