Author: adrian
Date: 2006-08-30 22:16:08 -0500 (Wed, 30 Aug 2006)
New Revision: 3683
Modified:
django/trunk/tests/modeltests/get_latest/models.py
Log:
Fixed typo in docstring of get_latest model unit test
Modified: django/trunk/tests/modeltests/get_latest/models.py
===================================================================
--- django/trunk/tests/modeltests/get_latest/models.py 2006-08-30 19:14:09 UTC
(rev 3682)
+++ django/trunk/tests/modeltests/get_latest/models.py 2006-08-31 03:16:08 UTC
(rev 3683)
@@ -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 @@
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):
...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates
-~----------~----~----~----~------~----~------~--~---