Browse files

Corrected a couple comments in `model_forms` tests.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@6660 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 8c9b654 commit 1eecc5a47e650e842231e5082c8f1f5a79a40afb @gdub gdub committed Nov 9, 2007
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/modeltests/model_forms/models.py
View
4 tests/modeltests/model_forms/models.py
@@ -517,15 +517,15 @@ def __unicode__(self):
...
ValidationError: [u'Enter a list of values.']
-# Add a Category object *after* the ModelChoiceField has already been
+# Add a Category object *after* the ModelMultipleChoiceField has already been
# instantiated. This proves clean() checks the database during clean() rather
# than caching it at time of instantiation.
>>> Category.objects.create(id=6, name='Sixth', url='6th')
<Category: Sixth>
>>> f.clean([6])
[<Category: Sixth>]
-# Delete a Category object *after* the ModelChoiceField has already been
+# Delete a Category object *after* the ModelMultipleChoiceField has already been
# instantiated. This proves clean() checks the database during clean() rather
# than caching it at time of instantiation.
>>> Category.objects.get(url='6th').delete()

0 comments on commit 1eecc5a

Please sign in to comment.