Label in Charfield

21 views
Skip to first unread message

Info Test

unread,
Jul 20, 2015, 6:04:30 AM7/20/15
to django...@googlegroups.com
Hello,
What is the best way to add class css for a label in Charfield form?
Thanks

Ayush Jha

unread,
Jul 20, 2015, 9:27:10 AM7/20/15
to django...@googlegroups.com

Carlos Andre

unread,
Jul 20, 2015, 1:36:58 PM7/20/15
to django...@googlegroups.com
campo = forms.Charfield(max_lenght = 5, widget=(attr={'class':classe_css}))

2015-07-20 10:25 GMT-03:00 Ayush Jha <ayus...@gmail.com>:

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAHGuwDymyci-CWmX6x5Vw7HYXfmtazxPGzJhZhFNiHgzdGH2VA%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages