diff options
| author | Jacob Kaplan-Moss <jacob@jacobian.org> | 2009-03-30 23:00:36 +0000 |
|---|---|---|
| committer | Jacob Kaplan-Moss <jacob@jacobian.org> | 2009-03-30 23:00:36 +0000 |
| commit | 5c321780c27b35a67c759f5062383786f98332fa (patch) | |
| tree | a80464ae3e98e86e21f7d627d551206f2bcb21a2 /tests | |
| parent | 843a9541eccbf2269a0b5de1e9888ae956bc953e (diff) | |
Fixed #8746: Check data in raw_id_fields more closely. Thanks, dgouldin
git-svn-id: http://code.djangoproject.com/svn/django/trunk@10233 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/modeltests/model_forms/models.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/modeltests/model_forms/models.py b/tests/modeltests/model_forms/models.py index c540319549..992bb903ba 100644 --- a/tests/modeltests/model_forms/models.py +++ b/tests/modeltests/model_forms/models.py @@ -857,6 +857,10 @@ ValidationError: [u'Select a valid choice. 100 is not one of the available choic Traceback (most recent call last): ... ValidationError: [u'Enter a list of values.'] +>>> f.clean(['fail']) +Traceback (most recent call last): +... +ValidationError: [u'"fail" is not a valid value for a primary key.'] # Add a Category object *after* the ModelMultipleChoiceField has already been # instantiated. This proves clean() checks the database during clean() rather |
