jazzband / django-floppyforms

Full control of form rendering in the templates.
http://django-floppyforms.readthedocs.org/
Other
839 stars 145 forks source link

`template_name` as parameter #89

Closed AndreiPashkin closed 10 years ago

AndreiPashkin commented 11 years ago

From my experience, template_name is often the only modification of widget, when its need to be customized. And it is require creation of subclass of the widget class. I think it makes sense, to include template_name in __init__ signature of widget class.

carljm commented 10 years ago

Or, for even greater flexibility, in the signature of the render method.

I have a use for this, and will submit a pull request.