# HG changeset patch # User Brian Neal # Date 1379801914 18000 # Node ID c0199d3d3b86be7096dcc92fe42b3b3798168bc4 # Parent 71d17d267e276681436a724f26a02cda1fbb4bbc Oops, last commit was returning HttpResponse* derived classes, not instances. diff -r 71d17d267e27 -r c0199d3d3b86 user_photos/views.py --- 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: