django-treemenus icon indicating copy to clipboard operation
django-treemenus copied to clipboard

reverse_named_url fails on Django 1.5 if using url arguments

Open SpectralAngel opened this issue 11 years ago • 3 comments

While migrating an app to Django 1.5 one of my menus handled by treemenus started to fail, it was looking for an url named this way:

"my_awesome_url its_awesome_argument"

All as a single url, this commit fixes that, but i owe you a test case.

SpectralAngel avatar Mar 28 '13 21:03 SpectralAngel

Hello and thanks for the patch. If you could provide a test, that would be great. That would also clarify the issue you've run into. Cheers!

jphalip avatar Apr 07 '13 22:04 jphalip

I'm trying this patch and it works for me with django 1.5.1.

leliocampanile avatar May 17 '13 12:05 leliocampanile

https://docs.djangoproject.com/en/1.8/ref/templates/builtins/#std:templatetag-url

try to use 'url' to replace 'reverse_named_url' :)

just like :

  • {{ menu_item.caption }}
  • cary929 avatar May 04 '15 08:05 cary929