Django

Code

Changeset 3683

Show
Ignore:
Timestamp:
08/30/06 22:16:08 (2 years ago)
Author:
adrian
Message:

Fixed typo in docstring of get_latest model unit test

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/tests/modeltests/get_latest/models.py

    r3661 r3683  
    44Models can have a ``get_latest_by`` attribute, which should be set to the name 
    55of a DateField or DateTimeField. If ``get_latest_by`` exists, the model's 
    6 module will get a ``get_latest()`` function, which will return the latest 
    7 object in the database according to that field. "Latest" means "having the 
    8 date farthest into the future." 
     6manager will get a ``latest()`` method, which will return the latest object in 
     7the database according to that field. "Latest" means "having the date farthest 
     8into the future." 
    99""" 
    1010 
     
    3131 
    3232__test__ = {'API_TESTS':""" 
    33 # Because no Articles exist yet, get_latest() raises ArticleDoesNotExist. 
     33# Because no Articles exist yet, latest() raises ArticleDoesNotExist. 
    3434>>> Article.objects.latest() 
    3535Traceback (most recent call last):