Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

specify any orderable field can be specified in get_latest_by, closes…

… #18875
  • Loading branch information...
commit 09e3d364b922510f4c14a4d843e59c37304fa1a7 1 parent 39aa890
@dlo dlo authored
Showing with 4 additions and 3 deletions.
  1. +4 −3 docs/ref/models/options.txt
View
7 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::
Please sign in to comment.
Something went wrong with that request. Please try again.