|Reported by:||Daniele Procida||Owned by:||Ben Davis|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
reverse(viewname[, urlconf=None, args=None, kwargs=None, current_app=None]) viewname is either the function name (either a function reference, or the string version of the name, if you used that form in urlpatterns) or the URL pattern name.
I think this could be clearer.
- there should be a link to an example of each of the different ways in the documentation (only "URL pattern name" is elucidated this way)
- the phrase "function reference" is confusing; https://docs.djangoproject.com/en/dev/topics/http/urls/#passing-callable-objects-instead-of-strings speaks of "passing objects" for example and the same language should be used in both cases.
And what if one creates a URL pattern name that's the also the string version of the view function name - which would win?