title: Writing a Django detail view with a generic class based view
body: <p>I know this is really simple, but I'm missing something. And because I can't ever remember this, I'm hoping this can document a solution here.</p>
  
  <p>All I want to do is pass a PK for the object in the URL and get the detail view back.</p>
  
  <p>Url:</p>
  
  <pre><code>    url(regex=r'^(?P&lt;pk&gt;\d+)/$',
      view=AdventureDetail.as_view(),
      name='adventure_detail',
  ),
  </code></pre>
  
  <p>View:</p>
  
  <pre><code>class AdventureDetail(DetailView):
  """ Get a time entry detail view """
  
      template_name = "adventure/AdventureDetail.html"
  
      def get_object(self):
          return get_object_or_404(Page)
  </code></pre>
  
  <p>But I'm getting a "multiple objects returned error"</p>
  
  <blockquote>
    <p>MultipleObjectsReturned at /1/
    get() returned more than one Page -- it returned 5! Lookup parameters were {}</p>
  </blockquote>
  
  <p>This feels really silly. It should "just work" but I'm missing something obvious.</p>
  
  <p>Thanks for the help.</p>