Mercurial > public > sg101
diff user_photos/views.py @ 724:8b027e7a7977
Sigh, fix last commit.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 21 Sep 2013 18:06:57 -0500 |
parents | c0199d3d3b86 |
children | 4f265f61874b |
line wrap: on
line diff
--- a/user_photos/views.py Sat Sep 21 17:18:34 2013 -0500 +++ b/user_photos/views.py Sat Sep 21 18:06:57 2013 -0500 @@ -58,9 +58,9 @@ """ if not request.user.is_authenticated(): - return HttpResponseForbidden() + return HttpResponseForbidden('Please login to use this service') if not request.is_ajax() or request.method != 'POST': - return HttpResponseNotAllowed() + return HttpResponseNotAllowed('This method is not allowed') ret = {'success': False, 'msg': '', 'url': ''} if settings.USER_PHOTOS_ENABLED: