Mercurial > public > sg101
changeset 723:c0199d3d3b86
Oops, last commit was returning HttpResponse* derived classes, not instances.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 21 Sep 2013 17:18:34 -0500 |
parents | 71d17d267e27 |
children | 8b027e7a7977 |
files | user_photos/views.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/user_photos/views.py Sat Sep 21 17:00:49 2013 -0500 +++ b/user_photos/views.py Sat Sep 21 17:18:34 2013 -0500 @@ -58,9 +58,9 @@ """ if not request.user.is_authenticated(): - return HttpResponseForbidden + return HttpResponseForbidden() if not request.is_ajax() or request.method != 'POST': - return HttpResponseNotAllowed + return HttpResponseNotAllowed() ret = {'success': False, 'msg': '', 'url': ''} if settings.USER_PHOTOS_ENABLED: