title: Can I assign custom name for path converters in Django?
body: <p>I want to assign custom name for <code>slug</code> path converter in <code>urlpatterns</code> of my 
  Now it looks like this:</p>
  
  <pre><code>urlpatterns = [
      ...
      path(
          route="&lt;slug:category&gt;/",
          view=views.Category.as_view(),
          name="shop_category"
      ),
      ...
  ]
  </code></pre>
  
  <p>In this view I'm using <code>DetailListView</code>. The slug contains only ASCII characters, but anyway it doesn't let me in. After some manipulations with passed value, I return from <code>get</code> with <code>return super().get(request, *args, **kwargs)</code> line.</p>
  
  <p>Then it throws me an error:</p>
  
  <blockquote>
    <p>AttributeError: Generic detail view Category must be called with either an object pk or a slug in the URLconf.</p>
  </blockquote>
  
  <p>But if I change in <code>category</code> name in <code>urlpatterns</code> to <code>slug</code>, error disappears.
  <hr>
  Now, the question: can I assign custom name for path converters in Django?</p>