Skip to content

Commit

Permalink
Accept any amount of args in get_overview_stats()
Browse files Browse the repository at this point in the history
This works around decorator madness
  • Loading branch information
jleclanche committed Sep 8, 2014
1 parent cc9364e commit 25389b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pootle/apps/pootle_store/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@ def timeline(request, unit):
@get_path_obj
@permission_required('view')
@get_resource
def get_qualitycheck_stats(request, path_obj, **kwargs):
def get_qualitycheck_stats(request, *args, **kwargs):
failing_checks = request.resource_obj.get_checks()['checks']
response = jsonify(failing_checks)
return HttpResponse(response, mimetype="application/json")
Expand All @@ -708,7 +708,7 @@ def get_qualitycheck_stats(request, path_obj, **kwargs):
@get_path_obj
@permission_required('view')
@get_resource
def get_overview_stats(request, path_obj, **kwargs):
def get_overview_stats(request, *args, **kwargs):
goal = None
if 'goalSlug' in request.GET:
try:
Expand Down

0 comments on commit 25389b5

Please sign in to comment.