Login

NoneWidget

Author:
diverman
Posted:
June 30, 2010
Language:
Python
Version:
Not specified
Tags:
widgets widget
Score:
0 (after 0 ratings)

Sometime may be useful to disable the HTML output from formfield to template.

1
2
3
class NoneWidget(forms.Widget):
    def render(self, name, value, attrs=None):
        return u''

More like this

Comments

Please login first before commenting.