Pass a captured named regular expression to URL dictionary in generic view
- by Trent Jurewicz
I am working with a generic view in Django. I want to capture a named group parameter in the URL and pass the value to the URL pattern dictionary. For example, in the URLConf below, I want to capture the parent_slug value in the URL and pass it to the queryset dictionary value like so:
urlpatterns = patterns('django.views.generic.list_detail',
…