title: Python-django url with two slugs
body: <p>Hello I have a problem while I am trying two slugs in one url. I have:</p>
  
  <p>html file:</p>
  
  <pre><code>&lt;div class="panel-heading"&gt;
     &lt;h4&gt;&lt;a class="link" href="{% url 'data:inspection_detail'
                                  plant_slug=plant.slug
                                  inspection_slug=inspection.slug%}"&gt;{{inspection.name}}&lt;/a&gt;&lt;/h4&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>views.py file</p>
  
  <pre><code>def inspection_detail(request, inspection_slug, plant_slug):
      if not request.user.is_authenticated():
          return render(request, 'data/login.html')
      else:
          user = request.user
          plant = get_object_or_404(Plant, slug=plant_slug)
          inspection = get_object_or_404(Inspection, slug=inspection_slug)
          template = 'data/inspection_detail.html'
          context = {'inspection': inspection, 'user': user, 'plant':plant}
          return render(request, template, context)
  </code></pre>
  
  <p>and my url patterns:</p>
  
  <pre><code>url(r'^plants/(?P&lt;plant_slug&gt;[-\w])/(?P&lt;inspection_slug&gt;[-\w]+)/$', views.inspection_detail, name='inspection_detail'),
  </code></pre>
  
  <p>But I get:</p>
  
  <pre><code>Page not found (404)
  </code></pre>
  
  <p>And I cant see where is the mistake!</p>