Login

TextField

Author:
simon
Posted:
May 12, 2009
Language:
Python
Version:
1.0
Tags:
forms textfield
Score:
5 (after 5 ratings)

Alex Gaynor presented this idiom at EuroDjangoCon 2009.

1
2
3
4
from django import forms
from django.utils.functional import curry

TextField = curry(forms.CharField, widget = forms.Textarea)

More like this

  1. Render TextField in Admin by xavierlesa 4 years, 9 months ago
  2. base64 encoding/decoding property for storing binary data in Django TextFields. by bikeshedder 6 years ago
  3. bigger textfields in admin panel by jedie 7 years, 9 months ago
  4. MarkdownTextField by carljm 6 years, 11 months ago
  5. Template filter for internal links in TextFields by bobtiki 8 months ago

Comments

Please login first before commenting.