mirror of
https://github.com/django/django.git
synced 2025-07-19 00:59:17 +00:00
[1.0.X] Fixed #10103: Testcase fix for Jython compatibility. Thanks for report and patch leosoto.
r9782 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9784 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
042777c838
commit
47ed900b41
@ -1285,8 +1285,8 @@ True
|
|||||||
>>> form = ExplicitPKForm({'key': u'key1', 'desc': u''})
|
>>> form = ExplicitPKForm({'key': u'key1', 'desc': u''})
|
||||||
>>> form.is_valid()
|
>>> form.is_valid()
|
||||||
False
|
False
|
||||||
>>> form.errors
|
>>> sorted(form.errors.items())
|
||||||
{'__all__': [u'Explicit pk with this Key and Desc already exists.'], 'key': [u'Explicit pk with this Key already exists.'], 'desc': [u'Explicit pk with this Desc already exists.']}
|
[('__all__', [u'Explicit pk with this Key and Desc already exists.']), ('desc', [u'Explicit pk with this Desc already exists.']), ('key', [u'Explicit pk with this Key already exists.'])]
|
||||||
|
|
||||||
# Choices on CharField and IntegerField
|
# Choices on CharField and IntegerField
|
||||||
>>> class ArticleForm(ModelForm):
|
>>> class ArticleForm(ModelForm):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user