From 8040674be985e8bd2a527fcffd04173dcd3d2411 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Fri, 15 Jun 2018 20:40:46 +0200 Subject: [PATCH] Use custom select for level too --- manuels/forms.py | 1 + 1 file changed, 1 insertion(+) diff --git a/manuels/forms.py b/manuels/forms.py index 4129da3..e4c95bc 100644 --- a/manuels/forms.py +++ b/manuels/forms.py @@ -24,6 +24,7 @@ class EditBookForm(forms.ModelForm): self.fields['teacher'].widget.attrs.update({'class': 'custom-select'}) self.fields['editor'].widget.attrs.update({'class': 'custom-select'}) self.fields['previously_acquired'].widget.attrs.update({'class': 'custom-select'}) + self.fields['level'].widget.attrs.update({'class': 'custom-select'}) def clean(self): editor = self.cleaned_data['editor']