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. Generate and render HTML Table by LLyaudet 1 day, 22 hours ago
  2. My firs Snippets by GutemaG 5 days, 6 hours ago
  3. FileField having auto upload_to path by junaidmgithub 1 month, 1 week ago
  4. LazyPrimaryKeyRelatedField by LLyaudet 1 month, 2 weeks ago
  5. CacheInDictManager by LLyaudet 1 month, 2 weeks ago

Comments

Please login first before commenting.