I would like to make a queryset on a generic view in this way:
category_info = {
'queryset' : ModelObject.objects.filter(category=category_id)
}
where the category_id
will be stated on the URL
(r'^category/(?P<category_id>\d+)$', 'object_list', category_info )
But I don't know how to take the data from the URL and pass it to the category info...