From 7cb7541971b2e080d1288e24e5705d296b11a021 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Mon, 19 Feb 2007 23:43:14 +0000 Subject: Improved newforms to handle wacky characters in Field help_text git-svn-id: http://code.djangoproject.com/svn/django/trunk@4543 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/regressiontests/forms/tests.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests') diff --git a/tests/regressiontests/forms/tests.py b/tests/regressiontests/forms/tests.py index c53729da46..2e34111b3e 100644 --- a/tests/regressiontests/forms/tests.py +++ b/tests/regressiontests/forms/tests.py @@ -2698,6 +2698,13 @@ purposes, though.
  • Username: e.g., user@example.com
  • Password:
  • +Help text can include arbitrary Unicode characters. +>>> class UserRegistration(Form): +... username = CharField(max_length=10, help_text='ŠĐĆŽćžšđ') +>>> p = UserRegistration(auto_id=False) +>>> p.as_ul() +u'
  • Username: \u0160\u0110\u0106\u017d\u0107\u017e\u0161\u0111
  • ' + # Subclassing forms ########################################################### You can subclass a Form to add fields. The resulting form subclass will have -- cgit v1.3