Skip to content

Commit

Permalink
[Fixes #2171] Removed print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
damienallen committed May 17, 2016
1 parent 0dcf5c9 commit 732f92c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion akvo/rest/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,5 @@ def eval_query_value(request, key):
q_expr = q_expr | Q(**query)

queryset = queryset.filter(q_expr)
print queryset

return queryset
2 changes: 0 additions & 2 deletions akvo/rsr/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -1327,11 +1327,9 @@ def get_list_display(self, request):

def get_queryset(self, request):
if request.user.is_admin or request.user.is_superuser:
print "is admin or superuser"
return super(PartnerSiteAdmin, self).get_queryset(
request).select_related('organisation')

print "was not admin or superuser"
from .models import PartnerSite
qs = PartnerSite.objects.none()
for employment in request.user.employers.approved():
Expand Down

0 comments on commit 732f92c

Please sign in to comment.