Re: can't pass a parameter to my named url using {% url %} tag in template

2008-11-27 Thread Rock
I had the same problem recently in a template that was created for use in an inclusion_tag. My workaround was to the perform the reverse call in the templatetag and pass in the resulting url. If that is not an appropriate workaround for you, perhaps a "with" will do the trick. If that doesn't wor

Re: can't pass a parameter to my named url using {% url %} tag in template

2008-11-27 Thread dash86no
On Nov 27, 10:43 pm, bruno desthuilliers <[EMAIL PROTECTED]> wrote: > On 27 nov, 14:19, dash86no <[EMAIL PROTECTED]> wrote: > (snip) > > > However, when I do : > > > delete > > > I get the error: > > > Caught an exception while rendering: Reverse for 'sam_project.delete- > > quote-page,' with arg

Re: can't pass a parameter to my named url using {% url %} tag in template

2008-11-27 Thread bruno desthuilliers
On 27 nov, 14:19, dash86no <[EMAIL PROTECTED]> wrote: (snip) > However, when I do : > > delete > > I get the error: > > Caught an exception while rendering: Reverse for 'sam_project.delete- > quote-page,' with arguments '('',)' and keyword arguments '{}' not > found. > > If anyone has any hints th

Re: can't pass a parameter to my named url using {% url %} tag in template

2008-11-27 Thread Thomas Kerpe
Why don't write {% url delete-quote-page object.id %} ? HTH //Thomas On Nov 27, 2:19 pm, dash86no <[EMAIL PROTECTED]> wrote: > I'm trying to use a URL tag as following: > > delete > > my named url is here: > > url(r'^quote/delete/(?P\d+)/$', > 'django.views.generic.create_update.delete_object',

can't pass a parameter to my named url using {% url %} tag in template

2008-11-27 Thread dash86no
I'm trying to use a URL tag as following: delete my named url is here: url(r'^quote/delete/(?P\d+)/$', 'django.views.generic.create_update.delete_object', dict(quote_info, post_delete_redirect='/sam/'), name="delete-quote-page"), If I change the code to look like this: http://localhost:8000/