Re: variable {% url %} parameter

2009-12-16 Thread bruno desthuilliers
On 15 déc, 17:00, Daniel Roseman wrote: > > Should be {% url app-edit object_id=object.pk %} - ie drop the quotes > around app-edit. Duh :( I missed that one... -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

Re: variable {% url %} parameter

2009-12-15 Thread Baurzhan Ismagulov
On Tue, Dec 15, 2009 at 08:00:54AM -0800, Daniel Roseman wrote: > Should be {% url app-edit object_id=object.pk %} - ie drop the quotes > around app-edit. Yes, this worked. Thanks, Daniel and Bruno! With kind regards, -- Baurzhan Ismagulov http://www.kz-easy.com/ -- You received this message b

Re: variable {% url %} parameter

2009-12-15 Thread Daniel Roseman
On Dec 15, 3:36 pm, Baurzhan Ismagulov wrote: > On Mon, Dec 14, 2009 at 02:12:00AM -0800, bruno desthuilliers wrote: > > > (r'^app/(?P\d+)/$', create_update.update_object, > > > {'model': App}, 'app-edit'), > > > > Now, using {% url 'app-edit' object.pk %} in a form throws > > > TemplateSyntaxErro

Re: variable {% url %} parameter

2009-12-15 Thread Baurzhan Ismagulov
On Mon, Dec 14, 2009 at 02:12:00AM -0800, bruno desthuilliers wrote: > >     (r'^app/(?P\d+)/$', create_update.update_object, > >      {'model': App}, 'app-edit'), > > > > Now, using {% url 'app-edit' object.pk %} in a form throws > > TemplateSyntaxError, mentioning "NoReverseMatch: Reverse for > >

Re: variable {% url %} parameter

2009-12-14 Thread bruno desthuilliers
On 12 déc, 18:15, Baurzhan Ismagulov wrote: > Hello, > > Another named URL question. I have the following pattern: > >     (r'^app/(?P\d+)/$', create_update.update_object, >      {'model': App}, 'app-edit'), > > Now, using {% url 'app-edit' object.pk %} in a form throws > TemplateSyntaxError, ment

variable {% url %} parameter

2009-12-12 Thread Baurzhan Ismagulov
Hello, Another named URL question. I have the following pattern: (r'^app/(?P\d+)/$', create_update.update_object, {'model': App}, 'app-edit'), Now, using {% url 'app-edit' object.pk %} in a form throws TemplateSyntaxError, mentioning "NoReverseMatch: Reverse for 'rc.'app-edit'' with arg