From 7019c75d080d7d4ed374182ea2e6fe82710e5d7c Mon Sep 17 00:00:00 2001 From: Sanj Date: Fri, 5 Oct 2012 17:30:05 +0530 Subject: [PATCH] is_staff is a bool, not callable --- chaloBEST/mumbai/apiviews.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chaloBEST/mumbai/apiviews.py b/chaloBEST/mumbai/apiviews.py index cd4b003..f94a635 100644 --- a/chaloBEST/mumbai/apiviews.py +++ b/chaloBEST/mumbai/apiviews.py @@ -87,7 +87,7 @@ def stops(request): def stop(request, slug): srid = int(request.GET.get("srid", 4326)) if request.POST and request.POST.has_key('geojson'): - if not request.user.is_staff(): + if not request.user.is_staff: return render_to_json_response({'error': 'No permission'}) if not slug: stop = Stop() #FIXME: should this return an error instead?