Commit 7a7c0709 by jsa

notification_prefs/views: correct docstring

parent 4f7edbf6
......@@ -135,10 +135,10 @@ def ajax_disable(request):
@require_GET
def ajax_status(request):
"""
A view that sends notifications status for the authenticated user
A view that retrieves notifications status for the authenticated user.
This view should be invoked by an AJAX POST call. It returns status 204
(no content) or an error.
This view should be invoked by an AJAX GET call. It returns status 200,
with a JSON-formatted payload, or an error.
"""
if not request.user.is_authenticated():
raise PermissionDenied
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment