maraujop/django-crispy-forms — pull request #32 by jamesmfriedman (2012-03-27 21:20:20+00:00)
Title: HTML Attributes

Added the ability for additional kwargs to be turned into html attributes that get added to the BaseInput class. This will help support HTML data attributes, used heavily by Bootstrap. Underscores get converted to dashes.

Example:
Button(submit, 'Submit', data_toggle='some data')