Re: Passing optional URL params to reverse() function

2009-08-11 Thread nabucosound
Hi Malcolm, Thanks for your answer. Somehow I had a shortcircuit in my brain yerterday that made me try to do an impossible upon the framework, that is, using the same GET response with the same URL after an HTTP redirect, rendering extra information if extra params in the URLconf url were

Re: Passing optional URL params to reverse() function

2009-08-10 Thread Malcolm Tredinnick
On Mon, 2009-08-10 at 11:28 -0700, nabucosound wrote: > Hi all: > > I have a URLconf url entry like this: > > > url( > regex=r'^(?P\w+)/(?P[-\w]+)/$', > view='show_post', > name='show_post', > kwargs={'msg': None}, > ), > > > and I want to call it with

Passing optional URL params to reverse() function

2009-08-10 Thread nabucosound
Hi all: I have a URLconf url entry like this: url( regex=r'^(?P\w+)/(?P[-\w]+)/$', view='show_post', name='show_post', kwargs={'msg': None}, ), and I want to call it with HttpResponseRedirect and reverse(): filters = {'category': post.category.name, 'slug':

Passing optional URL params to reverse() function

2009-08-10 Thread nabucosound
Hi all: I have a URLconf url entry like this: url( regex=r'^(?P\w+)/(?P[-\w]+)/$', view='show_post', name='show_post', kwargs={'msg': None}, ), and I want to call it with HttpResponseRedirect and reverse(): filters = {'category': post.category.name,