[1.8.x] Refs #17914 -- Discouraged using reverese() with callables.
Backport of a6acfc3183
from master
This commit is contained in:
parent
5bdf0eafb1
commit
f32bb3adf0
|
@ -26,6 +26,7 @@ you can use any of the following to reverse the URL::
|
||||||
reverse('news_archive')
|
reverse('news_archive')
|
||||||
|
|
||||||
# passing a callable object
|
# passing a callable object
|
||||||
|
# (This is discouraged because you can't reverse namespaced views this way.)
|
||||||
from news import views
|
from news import views
|
||||||
reverse(views.archive)
|
reverse(views.archive)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue