aboutsummaryrefslogtreecommitdiffstats
path: root/examples/permissionsexample/views.py
diff options
context:
space:
mode:
authormarkotibold2011-06-26 01:38:56 +0200
committermarkotibold2011-06-26 01:38:56 +0200
commit8cab127c2a99ab027e981f3e9198b7c548f0aa46 (patch)
tree15cd8e640de25af828c0634e71b99242e4dfe7d5 /examples/permissionsexample/views.py
parent9be3d38aa02ff2a64adc9cab60db05f37cbfe476 (diff)
downloaddjango-rest-framework-8cab127c2a99ab027e981f3e9198b7c548f0aa46.tar.bz2
some restyling and updated requirements.txt for yaml support
Diffstat (limited to 'examples/permissionsexample/views.py')
-rw-r--r--examples/permissionsexample/views.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/permissionsexample/views.py b/examples/permissionsexample/views.py
index ca456191..f95c2c84 100644
--- a/examples/permissionsexample/views.py
+++ b/examples/permissionsexample/views.py
@@ -29,8 +29,10 @@ class ThrottlingExampleView(View):
"""
return "Successful response to GET request because throttle is not yet active."
-class LoggedinView(View):
-
+class LoggedInExampleView(View):
+ """
+ You can login with **'test', 'test'.**
+ """
permissions = (IsAuthenticated, )
def get(self, request):
return 'Logged in or not?' \ No newline at end of file