diff options
| author | Carlton Gibson | 2014-09-02 14:53:37 +0200 |
|---|---|---|
| committer | Carlton Gibson | 2014-09-02 14:53:37 +0200 |
| commit | fa0ef1773773c58b5708abad0e90a44fc9a308f8 (patch) | |
| tree | a7a9d63f10908b312344498e6ba8ede720a11c24 /tests/browsable_api/auth_urls.py | |
| parent | 14877464f66600ab89567f846cfd98c7200437e9 (diff) | |
| download | django-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.py | 10 |
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')), +) |
