diff options
| author | Honza Král <honza.kral@gmail.com> | 2009-06-01 15:41:41 +0000 |
|---|---|---|
| committer | Honza Král <honza.kral@gmail.com> | 2009-06-01 15:41:41 +0000 |
| commit | 32916adca861f8ed2a8498fa03b23cd050661a79 (patch) | |
| tree | 204822f0960fc262ce771f13800c2deffdc50271 /tests | |
| parent | e573fb41e95d7d3f825f0d58e21bb3803e5ac0cf (diff) | |
[soc2009/model-validation] Dont't validate already failed fields
This removes the duplicate messages we have been seeing
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/model-validation@10876 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/modeltests/model_forms/models.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/modeltests/model_forms/models.py b/tests/modeltests/model_forms/models.py index a8a414143e..89fd56efe9 100644 --- a/tests/modeltests/model_forms/models.py +++ b/tests/modeltests/model_forms/models.py @@ -449,9 +449,9 @@ u'third-test' If you call save() with invalid data, you'll get a ValueError. >>> f = CategoryForm({'name': '', 'slug': 'not a slug!', 'url': 'foo'}) >>> f.errors['name'] -[u'This field is required.', u'This field cannot be blank.'] +[u'This field is required.'] >>> f.errors['slug'] -[u"Enter a valid 'slug' consisting of letters, numbers, underscores or hyphens.", u'This field cannot be blank.'] +[u"Enter a valid 'slug' consisting of letters, numbers, underscores or hyphens."] >>> f.cleaned_data Traceback (most recent call last): ... |
