summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2006-08-31 03:16:08 +0000
committerAdrian Holovaty <adrian@holovaty.com>2006-08-31 03:16:08 +0000
commitfe5462e57a84f126d6e0274bb8ef9df60927345e (patch)
tree66f4e117892d39471e99e7c808ecfc1819cec3fa /tests
parenta4bd32770c5bc51bfdc7e45fa5d3438c06ea6cd3 (diff)
Fixed typo in docstring of get_latest model unit test
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3683 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests')
-rw-r--r--tests/modeltests/get_latest/models.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/modeltests/get_latest/models.py b/tests/modeltests/get_latest/models.py
index ff8d8f28eb..84c6273818 100644
--- a/tests/modeltests/get_latest/models.py
+++ b/tests/modeltests/get_latest/models.py
@@ -3,9 +3,9 @@
Models can have a ``get_latest_by`` attribute, which should be set to the name
of a DateField or DateTimeField. If ``get_latest_by`` exists, the model's
-module will get a ``get_latest()`` function, which will return the latest
-object in the database according to that field. "Latest" means "having the
-date farthest into the future."
+manager will get a ``latest()`` method, which will return the latest object in
+the database according to that field. "Latest" means "having the date farthest
+into the future."
"""
from django.db import models
@@ -30,7 +30,7 @@ class Person(models.Model):
return self.name
__test__ = {'API_TESTS':"""
-# Because no Articles exist yet, get_latest() raises ArticleDoesNotExist.
+# Because no Articles exist yet, latest() raises ArticleDoesNotExist.
>>> Article.objects.latest()
Traceback (most recent call last):
...