I'm trying to do something like:
in urls.py:
...
url(r'^(?P<pk>\d+)/$', VideoDetailView.as_view(), name='video_detail', kwargs={'foo:''})
...
in views.py
..
HttpResponseRedirect(reverse('video_detail', kwargs={'pk': id, 'foo':'bar'}))
...
But this doesn't seem to work. I get a Reverse for 'video_detail' with arguments '()' and keyword arguments '{'pk': 13240L, 'foo': 'bar}' not found.
However this does work:
....
HttpResponseRedirect(reverse('video_detail', kwargs={'pk': id}))
...
ie. removing foo: bar from the reverse call. What's the correct way to do this and pass in extra arguments in the reverse url?