aboutsummaryrefslogtreecommitdiffstats
path: root/tests/browsable_api/auth_urls.py
diff options
context:
space:
mode:
authorCarlton Gibson2014-09-02 14:53:37 +0200
committerCarlton Gibson2014-09-02 14:53:37 +0200
commitfa0ef1773773c58b5708abad0e90a44fc9a308f8 (patch)
treea7a9d63f10908b312344498e6ba8ede720a11c24 /tests/browsable_api/auth_urls.py
parent14877464f66600ab89567f846cfd98c7200437e9 (diff)
downloaddjango-rest-framework-fa0ef1773773c58b5708abad0e90a44fc9a308f8.tar.bz2
Remove Login Dropdown when Auth Views are not registered.
Fixes #1738
Diffstat (limited to 'tests/browsable_api/auth_urls.py')
-rw-r--r--tests/browsable_api/auth_urls.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/browsable_api/auth_urls.py b/tests/browsable_api/auth_urls.py
new file mode 100644
index 00000000..3cb2d8da
--- /dev/null
+++ b/tests/browsable_api/auth_urls.py
@@ -0,0 +1,10 @@
+from __future__ import unicode_literals
+from django.conf.urls import patterns, url, include
+
+from views import MockView
+
+urlpatterns = patterns(
+ '',
+ (r'^$', MockView.as_view()),
+ url(r'^auth/', include('rest_framework.urls', namespace='rest_framework')),
+)