If your urlconf looks something like this:
url(r'^(?P<slug>[a-zA-Z0-9-]+)/$', MyView.as_view(), name="my_named_view")
then the slug will be available inside your view functions (such as ‘get_queryset’) like this:
self.kwargs['slug']
If your urlconf looks something like this:
url(r'^(?P<slug>[a-zA-Z0-9-]+)/$', MyView.as_view(), name="my_named_view")
then the slug will be available inside your view functions (such as ‘get_queryset’) like this:
self.kwargs['slug']