Ah, found it on the django read the docs site. This is what I did in my
inline formset factory
BookFormset = inlineformset_factory(Author, Book, extra=3, max_num=3,
widgets={'name': forms.TextInput(attrs={'class':'u-full-width'})})
On Tuesday, December 16, 2014 8:34:25 AM UTC-5, Brad Rice wrote
When I do a model form I can control the fields with attributes using
name =
forms.CharField(widget=forms.TextInput(attrs={'class':'u-full-width'}))
How do I do something like that in an inline formset? I don't see where I
can set attributes.
--
You received this message because you are subs
2 matches
Mail list logo