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.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@10152 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Russell Keith-Magee 2009-03-24 11:46:18 +00:00
parent 539bebab3f
commit cce822c0f5
2 changed files with 5 additions and 6 deletions

View File

@ -724,7 +724,7 @@ A :class:`CharField` for a URL. Has one extra optional argument:
The admin represents this as an ``<input type="text">`` (a single-line input). 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`argument. If you don't specify
:attr:`~CharField.max_length`, a default of 200 is used. :attr:`~CharField.max_length`, a default of 200 is used.

View File

@ -366,8 +366,7 @@ Extra instance methods
In addition to ``save()``, ``delete()``, a model object might get any or all In addition to ``save()``, ``delete()``, a model object might get any or all
of the following methods: of the following methods:
get_FOO_display() .. method:: Model.get_FOO_display()
-----------------
For every field that has ``choices`` set, the object will have a 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 ``get_FOO_display()`` method, where ``FOO`` is the name of the field. This
@ -391,8 +390,8 @@ following model::
>>> p.get_gender_display() >>> p.get_gender_display()
'Male' '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``, For every ``DateField`` and ``DateTimeField`` that does not have ``null=True``,
the object will have ``get_next_by_FOO()`` and ``get_previous_by_FOO()`` the object will have ``get_next_by_FOO()`` and ``get_previous_by_FOO()``