From e99fa0c47f5e9aed39c666ca90af5cd680102a4e Mon Sep 17 00:00:00 2001 From: Jannis Leidel Date: Fri, 29 Apr 2011 12:03:02 +0000 Subject: [PATCH] Added file forgotten in r16121. Refs #5925. Thanks, Julien. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16122 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- .../urlpatterns_reverse/reverse_lazy_urls.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tests/regressiontests/urlpatterns_reverse/reverse_lazy_urls.py diff --git a/tests/regressiontests/urlpatterns_reverse/reverse_lazy_urls.py b/tests/regressiontests/urlpatterns_reverse/reverse_lazy_urls.py new file mode 100644 index 0000000000..ebe229804b --- /dev/null +++ b/tests/regressiontests/urlpatterns_reverse/reverse_lazy_urls.py @@ -0,0 +1,10 @@ +from django.conf.urls.defaults import * + +from views import empty_view, LazyRedictView, login_required_view + +urlpatterns = patterns('', + url(r'^redirected_to/$', empty_view, name='named-lazy-url-redirected-to'), + url(r'^login/$', empty_view, name='some-login-page'), + url(r'^login_required_view/$', login_required_view), + url(r'^redirect/$', LazyRedictView.as_view()), +)