title: Get django object id based on model attribute
body: <p>I have a basic model named "Places" which has this view:</p>
  
  <pre><code>def view_index(request, place_name):
  </code></pre>
  
  <p>The user will access that view with a URL like this one:</p>
  
  <pre><code>http://server.com/kansas
  </code></pre>
  
  <p>"kansas" is a value stored in a field named "name" inside the model "Places".</p>
  
  <p>The problem is that I can't figure out how to obtain the object id based just on the object name. Is there a way to do this?</p>