Author: russellm
Date: 2009-03-24 06:46:18 -0500 (Tue, 24 Mar 2009)
New Revision: 10152

Modified:
   django/trunk/docs/ref/models/fields.txt
   django/trunk/docs/ref/models/instances.txt
Log:
Fixed #10329 -- Added link target for get_FOO_display, get_next_by_FOO, and 
get_previous_by_FOO. Thanks to rctay for the report, and timo for the patch.

Modified: django/trunk/docs/ref/models/fields.txt
===================================================================
--- django/trunk/docs/ref/models/fields.txt     2009-03-24 11:44:51 UTC (rev 
10151)
+++ django/trunk/docs/ref/models/fields.txt     2009-03-24 11:46:18 UTC (rev 
10152)
@@ -724,7 +724,7 @@
 
 The admin represents this as an ``<input type="text">`` (a single-line input).
 
-Like all ::class:`CharField` subclasses, :class:`URLField` takes the optional
+Like all :class:`CharField` subclasses, :class:`URLField` takes the optional
 :attr:`~CharField.max_length`argument. If you don't specify
 :attr:`~CharField.max_length`, a default of 200 is used.
 

Modified: django/trunk/docs/ref/models/instances.txt
===================================================================
--- django/trunk/docs/ref/models/instances.txt  2009-03-24 11:44:51 UTC (rev 
10151)
+++ django/trunk/docs/ref/models/instances.txt  2009-03-24 11:46:18 UTC (rev 
10152)
@@ -5,7 +5,7 @@
 ========================
 
 .. currentmodule:: django.db.models
-   
+
 This document describes the details of the ``Model`` API. It builds on the
 material presented in the :ref:`model <topics-db-models>` and :ref:`database
 query <topics-db-queries>` guides, so you'll probably want to read and
@@ -366,8 +366,7 @@
 In addition to ``save()``, ``delete()``, a model object might get any or all
 of the following methods:
 
-get_FOO_display()
------------------
+.. method:: Model.get_FOO_display()
 
 For every field that has ``choices`` set, the object will have a
 ``get_FOO_display()`` method, where ``FOO`` is the name of the field. This
@@ -391,8 +390,8 @@
     >>> p.get_gender_display()
     'Male'
 
-get_next_by_FOO(\**kwargs) and get_previous_by_FOO(\**kwargs)
--------------------------------------------------------------
+.. method:: Model.get_next_by_FOO(\**kwargs)
+.. method:: Model.get_previous_by_FOO(\**kwargs)
 
 For every ``DateField`` and ``DateTimeField`` that does not have ``null=True``,
 the object will have ``get_next_by_FOO()`` and ``get_previous_by_FOO()``


--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to