Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 1eecc5a47e650e842231e5082c8f1f5a79a40afb 1 parent 8c9b654
@gdub gdub authored
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,7 +517,7 @@ 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')
@@ -525,7 +525,7 @@ def __unicode__(self):
>>> 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.
Something went wrong with that request. Please try again.