Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[1.0.X] Fixed #10329 -- Added link target for get_FOO_display, get_ne…

…xt_by_FOO, and get_previous_by_FOO. Thanks to rctay for the report, and timo for the patch.

Merge of r10152 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10160 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 1c670a70530099ec61e78dabae5744512189f168 1 parent 1740144
Russell Keith-Magee authored March 24, 2009
2  docs/ref/models/fields.txt
@@ -724,7 +724,7 @@ A :class:`CharField` for a URL. Has one extra optional argument:
724 724
 
725 725
 The admin represents this as an ``<input type="text">`` (a single-line input).
726 726
 
727  
-Like all ::class:`CharField` subclasses, :class:`URLField` takes the optional
  727
+Like all :class:`CharField` subclasses, :class:`URLField` takes the optional
728 728
 :attr:`~CharField.max_length`argument. If you don't specify
729 729
 :attr:`~CharField.max_length`, a default of 200 is used.
730 730
 
9  docs/ref/models/instances.txt
@@ -5,7 +5,7 @@ Model instance reference
5 5
 ========================
6 6
 
7 7
 .. currentmodule:: django.db.models
8  
-   
  8
+
9 9
 This document describes the details of the ``Model`` API. It builds on the
10 10
 material presented in the :ref:`model <topics-db-models>` and :ref:`database
11 11
 query <topics-db-queries>` guides, so you'll probably want to read and
@@ -366,8 +366,7 @@ Extra instance methods
366 366
 In addition to ``save()``, ``delete()``, a model object might get any or all
367 367
 of the following methods:
368 368
 
369  
-get_FOO_display()
370  
------------------
  369
+.. method:: Model.get_FOO_display()
371 370
 
372 371
 For every field that has ``choices`` set, the object will have a
373 372
 ``get_FOO_display()`` method, where ``FOO`` is the name of the field. This
@@ -391,8 +390,8 @@ following model::
391 390
     >>> p.get_gender_display()
392 391
     'Male'
393 392
 
394  
-get_next_by_FOO(\**kwargs) and get_previous_by_FOO(\**kwargs)
395  
--------------------------------------------------------------
  393
+.. method:: Model.get_next_by_FOO(\**kwargs)
  394
+.. method:: Model.get_previous_by_FOO(\**kwargs)
396 395
 
397 396
 For every ``DateField`` and ``DateTimeField`` that does not have ``null=True``,
398 397
 the object will have ``get_next_by_FOO()`` and ``get_previous_by_FOO()``

0 notes on commit 1c670a7

Please sign in to comment.
Something went wrong with that request. Please try again.