diff user_photos/views.py @ 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
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: