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

  1. HTML Widgets by robhudson 7 years, 6 months ago
  2. Custom CheckboxSelectMultiple by martync 5 years, 10 months ago
  3. Image Widget (for admin) by moskrc 3 years, 1 month ago
  4. Complete Persian DateTime Widget by serj1975 3 years, 9 months ago
  5. Form widget for text inputs with external link. version2 by ramusus 6 years, 3 months ago

Comments

Please login first before commenting.