title: In django, how do I sort a model on a field and then get the last item?
body: <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>