Browse Source

VlozReseniForm: novější super je super()

export_seznamu_prednasek
Pavel 'LEdoian' Turinsky 5 years ago
parent
commit
8604ef7b4c
  1. 2
      seminar/forms.py

2
seminar/forms.py

@ -249,7 +249,7 @@ class VlozReseniForm(forms.Form):
#TODO prilohy #TODO prilohy
def __init__(self, *args, **kwargs): def __init__(self, *args, **kwargs):
super(VlozReseniForm, self).__init__(*args, **kwargs) super().__init__(*args, **kwargs)
#self.fields['favorite_color'] = forms.ChoiceField(choices=[(color.id, color.name) for color in Resitel.objects.all()]) #self.fields['favorite_color'] = forms.ChoiceField(choices=[(color.id, color.name) for color in Resitel.objects.all()])

Loading…
Cancel
Save