Kaydet (Commit) 235bf7f1 authored tarafından Jannis Leidel's avatar Jannis Leidel

Fixed test introduced in r12044 to actually test the issue.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@12249 bcc190cf-cafb-0310-a4f2-bffc1f526a37
üst d033dfd8
......@@ -58,13 +58,7 @@ u'BT32 4PX'
u''
>>> f.clean('')
u''
>>> class MyUKPostcodeField(UKPostcodeField):
... default_error_messages = {
... 'invalid': 'Enter a bloody postcode!',
... }
...
>>>
>>> f = MyUKPostcodeField(required=False)
>>> f = UKPostcodeField(error_messages={'invalid': 'Enter a bloody postcode!'})
>>> f.clean('1NV 4L1D')
Traceback (most recent call last):
...
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment