Login

TextField

Author:
simon
Posted:
May 12, 2009
Language:
Python
Version:
1.0
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. codigo alto nivel by MrRocklion 3 days, 5 hours ago
  2. Load template from specific app by Krzysiek555 3 weeks, 2 days ago
  3. PostgreSQL JSON subqueries by dolamroth 3 weeks, 4 days 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.