title: Dynamic SEO-friendly URLs
body: <p>I'd like to deploy dynamic URL's for my app in two ways:</p>
  
  <ol>
  <li>when viewing available vehicle, I get a link like: <a href="http://www.url.com/2006-Acura-MDX-Technology-Package" rel="nofollow noreferrer">http://www.url.com/2006-Acura-MDX-Technology-Package</a></li>
  <li>I also have a filter page, so here, the URL will change according to the filters selected like: <a href="http://www.url.com/2007-Nissan" rel="nofollow noreferrer">http://www.url.com/2007-Nissan</a> or <a href="http://www.url.com/2007-Nissan-Maxima" rel="nofollow noreferrer">http://www.url.com/2007-Nissan-Maxima</a> and so on depending on the filters the user has chosen.</li>
  </ol>
  
  <p>What's the best way to go about this?</p>
  
  <p><strong>EDIT 1</strong></p>
  
  <p>This now works</p>
  
  <pre><code>def get_absolute_url(self):
      return u'%s-%s-%s-%s-%s' % (self.common_vehicle.year.year,
                                  self.common_vehicle.series.model.manufacturer,
                                  self.common_vehicle.series.model.model,
                                  self.common_vehicle.series.series, 
                                  self.stock_number)
  </code></pre>
  
  <p>Then in my template I have:</p>
  
  <pre><code>&lt;a href="{{ vehicle.get_absolute_url }}/"&gt;
    &lt;span class="vehicle-title"&gt;
      {{ vehicle.common_vehicle.year.year }}&amp;nbsp;
      {{ vehicle.common_vehicle.series.model.manufacturer }}&amp;nbsp;
      {{ vehicle.common_vehicle.series.model.model }}&amp;nbsp;
      {{ vehicle.common_vehicle.series.series }}
    &lt;/span&gt;
  &lt;/a&gt;
  </code></pre>
  
  <p>All that remains is getting the stock number passed to the details view...so far I've done it like so:</p>
  
  <pre><code>(r'^inventory/details/(?P&lt;stock_number&gt;[-\w]+)/$',....
  </code></pre>