Django

Code

Show
Ignore:
Timestamp:
08/12/08 09:15:38 (4 months ago)
Author:
gwilson
Message:

Fixed a couple typos in the modeltests' descriptions and made use of ReST inline literal markup for code snippets.

Files:

Legend:

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

    r5876 r8325  
    33 
    44Models can have a ``get_latest_by`` attribute, which should be set to the name 
    5 of a DateField or DateTimeField. If ``get_latest_by`` exists, the model's 
    6 manager will get a ``latest()`` method, which will return the latest object in 
    7 the database according to that field. "Latest" means "having the date farthest 
    8 into the future." 
     5of a ``DateField`` or ``DateTimeField``. If ``get_latest_by`` exists, the 
     6model's manager will get a ``latest()`` method, which will return the latest 
     7object in the database according to that field. "Latest" means "having the date 
     8farthest into the future." 
    99""" 
    1010