mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Refs #17914 -- Discouraged using reverese() with callables.
This commit is contained in:
parent
b47e862d3a
commit
a6acfc3183
1 changed files with 1 additions and 0 deletions
|
@ -26,6 +26,7 @@ you can use any of the following to reverse the URL::
|
|||
reverse('news_archive')
|
||||
|
||||
# passing a callable object
|
||||
# (This is discouraged because you can't reverse namespaced views this way.)
|
||||
from news import views
|
||||
reverse(views.archive)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue