<p>Specifically, I have a model that has a field like this</p>

<pre><code>pub_date = models.DateField("date published")
</code></pre>

<p>I want to be able to easily grab the object with the most recent <code>pub_date</code>. What is the easiest/best way to do this?</p>

<p>Would something like the following do what I want?</p>

<pre><code>Edition.objects.order_by('pub_date')[:-1]
</code></pre>

```
```
obj = Edition.objects.latest('pub_date')
```
```
You can also simplify things by putting
```
get_latest_by
```
in the model's Meta, then you'll be able to do
```
```
obj = Edition.objects.latest()
```
```
See
the docs
for more info.  You'll probably also want to set the
```
ordering
```
Meta option.