summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2012-09-07 08:47:02 -0700
committerAlex Gaynor <alex.gaynor@gmail.com>2012-09-07 08:47:02 -0700
commitcceff73acd7d82904a4b9c28dea2448f09c941b0 (patch)
treef23398d6abafbdeabe9e06bbeca532e02ae4e796 /docs
parent0e296131bb9c94b9bedee34c2a30774107d1d899 (diff)
parent09e3d364b922510f4c14a4d843e59c37304fa1a7 (diff)
Merge pull request #335 from dlo/tickets/18875
specify any orderable field can be specified in get_latest_by, closes #18875
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/models/options.txt7
1 files changed, 4 insertions, 3 deletions
diff --git a/docs/ref/models/options.txt b/docs/ref/models/options.txt
index 9d076f6274..c5ae8398ea 100644
--- a/docs/ref/models/options.txt
+++ b/docs/ref/models/options.txt
@@ -83,9 +83,10 @@ Django quotes column and table names behind the scenes.
.. attribute:: Options.get_latest_by
- The name of a :class:`DateField` or :class:`DateTimeField` in the model.
- This specifies the default field to use in your model :class:`Manager`'s
- :class:`~QuerySet.latest` method.
+ The name of an orderable field in the model, typically a :class:`DateField`,
+ :class:`DateTimeField`, or :class:`IntegerField`. This specifies the default
+ field to use in your model :class:`Manager`'s :class:`~QuerySet.latest`
+ method.
Example::