title: Get first and last item in one query
body: <p>I want to get the first item and the last item in Django.
  My current code looks like this:</p>
  
  <pre><code>first = Article.objects.order_by('date').first()
  last = Article.objects.order_by('date').last()
  </code></pre>
  
  <p>However, these are two queries. Is there a way to make one query out of it?</p>