diff --git a/pandora/user/views.py b/pandora/user/views.py index 5ffc1f42b..c0fc48b91 100644 --- a/pandora/user/views.py +++ b/pandora/user/views.py @@ -796,7 +796,7 @@ actions.register(setUI, cache=False) @capability_required_json('canManageUsers') -def statistics(request, data): +def getStatistics(request, data): ''' Gets usage statistics takes {} @@ -813,7 +813,7 @@ def statistics(request, data): stats = Settings.get('statistics') response['data'] = stats return render_to_json_response(response) -actions.register(statistics, cache=False) +actions.register(getStatistics, cache=False) def group_json(g): diff --git a/static/js/statisticsDialog.js b/static/js/statisticsDialog.js index 07cd77e5e..2ca6b4230 100644 --- a/static/js/statisticsDialog.js +++ b/static/js/statisticsDialog.js @@ -84,7 +84,7 @@ pandora.ui.statisticsDialog = function() { $tabPanel; - pandora.api.statistics(function(result) { + pandora.api.getStatistics(function(result) { var data = result.data, flagCountry = {},