Use custom select for level too

This commit is contained in:
Gabriel Augendre 2018-06-15 20:40:46 +02:00
parent 8a370d52ab
commit 8040674be9

View file

@ -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']