summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Boersma <matt@sprout.org>2007-09-14 23:09:05 +0000
committerMatt Boersma <matt@sprout.org>2007-09-14 23:09:05 +0000
commit6c16d84a0bd830b0d5f9455f43b42c8f4a483b80 (patch)
tree8cf74f14043fe7545249f75b10b838a6b7ae3c4d
parent4c0ac53ff899bb9931d8c518fd1a643aca584f49 (diff)
Fixed test case that failed on Oracle because it assumed an ordering for
objects.all(). git-svn-id: http://code.djangoproject.com/svn/django/trunk@6246 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--tests/modeltests/model_forms/models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/modeltests/model_forms/models.py b/tests/modeltests/model_forms/models.py
index 47407573dd..00685534ab 100644
--- a/tests/modeltests/model_forms/models.py
+++ b/tests/modeltests/model_forms/models.py
@@ -306,7 +306,7 @@ Add some categories and test the many-to-many form output.
>>> new_art.id
1
>>> new_art = Article.objects.get(id=1)
->>> new_art.categories.all()
+>>> new_art.categories.order_by('name')
[<Category: Entertainment>, <Category: It's a test>]
Now, submit form data with no categories. This deletes the existing categories.
@@ -348,7 +348,7 @@ The m2m data won't be saved until save_m2m() is invoked on the form.
... 'writer': u'1', 'article': u'Test.', 'categories': [u'1', u'2']})
>>> new_art = f.save(commit=False)
-# Manually save the instance
+# Manually save the instance
>>> new_art.save()
>>> new_art.id
4