0
0
mirror of https://github.com/django/django.git synced 2024-12-01 15:42:04 +01:00

Refs #17914 -- Discouraged using reverese() with callables.

This commit is contained in:
Tim Graham 2015-08-03 08:33:51 -04:00
parent b47e862d3a
commit a6acfc3183

View File

@ -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)