title: How to specify something other than pk or slug for DetailView
body: <p>I was wondering if it was possible to use something besides a pk or slug when you are using a DetailView in Django 1.3.</p>
  
  <p>For example, I currently have:</p>
  
  <pre><code>url(r'^mymodel/(?P&lt;pk&gt;\d+)/$', MyDetailView.as_view())
  </code></pre>
  
  <p>as my url. Say I wanted something like:</p>
  
  <pre><code>url(r'^mymodel/(?P&lt;name&gt;\d+)/$', MyDetailView.as_view())
  </code></pre>
  
  <p>where name would be a field in the model. Is there anyway to have the DetailView use that to 'grab' the object I want and pass it on to my template?</p>