title: Next previous links from a query set / generic views
body: <p>I have a quite simple query set and a related generic views: </p>
  
  <pre><code>f_detail = {
           'queryset': Foto.objects.all(),
           'template_name': 'foto_dettaglio.html',
           "template_object_name" : "foto",
         }
  
  urlpatterns = patterns('',
  # This very include
  (r'^foto/(?P&lt;object_id&gt;\d+)/$', list_detail.object_detail, f_detail, ),
  )
  </code></pre>
  
  <p>Just a template for generating a detail page of a photo: so there's no view. </p>
  
  <hr>
  
  <p>Is there an easy way to have a link to  previous | next element in the template 
  without manualy coding a view ? </p>
  
  <p>Somthing like a: </p>
  
  <pre><code>{% if foto.next_item %} 
    &lt;a href="/path/foto/{{ foto.next_item.id_field }}/"&gt;Next&lt;/a&gt; 
  {% endif}
  </code></pre>