Login

NoneWidget

Author:
diverman
Posted:
June 30, 2010
Language:
Python
Version:
Not specified
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. codigo alto nivel by MrRocklion 6 days, 3 hours ago
  2. Load template from specific app by Krzysiek555 3 weeks, 5 days ago
  3. PostgreSQL JSON subqueries by dolamroth 4 weeks ago
  4. "Magic Link" Management Command by webology 6 months ago
  5. Closest ORM models to a latitude/longitude point by simonw 6 months ago

Comments

Please login first before commenting.