django-treemenus
django-treemenus copied to clipboard
reverse_named_url fails on Django 1.5 if using url arguments
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.
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!
I'm trying this patch and it works for me with django 1.5.1.
https://docs.djangoproject.com/en/1.8/ref/templates/builtins/#std:templatetag-url
try to use 'url' to replace 'reverse_named_url' :)
just like :