diff --git a/manuels/forms.py b/manuels/forms.py index 45a2957..4e36b31 100644 --- a/manuels/forms.py +++ b/manuels/forms.py @@ -11,6 +11,11 @@ class EditBookForm(forms.ModelForm): no_book = forms.BooleanField(label='Pas de livre pour cette classe/matière', required=False, initial=False) + def __init__(self, *args, **kwargs): + super().__init__(*args, **kwargs) + self.fields['title'].widget = forms.TextInput() + self.fields['authors'].widget = forms.TextInput() + class AddBookForm(EditBookForm): class Meta(EditBookForm.Meta):