class ArticleForm(forms.ModelForm):
slug = forms.CharField(widget=forms.HiddenInput(), label='')
class Meta:
model = Article
fields = '__all__'
widgets = {
'category': forms.Select(attrs={'class': 'form-control'}),
'title': forms.TextInput(attrs={'class': 'form-control'}),
'content': forms.Textarea(attrs={'class': 'form-control','rows': 15}),
}