Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge pull request #335 from dlo/tickets/18875

specify any orderable field can be specified in get_latest_by, closes #18875
  • Loading branch information...
commit cceff73acd7d82904a4b9c28dea2448f09c941b0 2 parents 0e29613 + 09e3d36
Alex Gaynor authored September 07, 2012

Showing 1 changed file with 4 additions and 3 deletions. Show diff stats Hide diff stats

  1. 7  docs/ref/models/options.txt
7  docs/ref/models/options.txt
@@ -83,9 +83,10 @@ Django quotes column and table names behind the scenes.
83 83
 
84 84
 .. attribute:: Options.get_latest_by
85 85
 
86  
-    The name of a :class:`DateField` or :class:`DateTimeField` in the model.
87  
-    This specifies the default field to use in your model :class:`Manager`'s
88  
-    :class:`~QuerySet.latest` method.
  86
+    The name of an orderable field in the model, typically a :class:`DateField`,
  87
+    :class:`DateTimeField`, or :class:`IntegerField`. This specifies the default
  88
+    field to use in your model :class:`Manager`'s :class:`~QuerySet.latest`
  89
+    method.
89 90
 
90 91
     Example::
91 92
 

0 notes on commit cceff73

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