How to pass request variable in generic views to a queryset.
For example i need to pass req_brand_slug from request to a filter in queryset:
all_by_brand = {
'queryset': Br.objects.filter(slug=req_brand_slug)
}
url(r'^model/(?P<req_brand_slug>[\w|-]+)/$', all_by_brand , name='brand'),
You’ll have to create your own view which calls the generic view with custom params.