diff --git a/kallithea/config/routing.py b/kallithea/config/routing.py --- a/kallithea/config/routing.py +++ b/kallithea/config/routing.py @@ -594,9 +594,9 @@ def make_map(config): rmap.connect("edit_repo_statistics", "/{repo_name:.*?}/settings/statistics", controller='admin/repos', action="edit_statistics", conditions=dict(method=["GET"], function=check_repo)) - rmap.connect("edit_repo_statistics", "/{repo_name:.*?}/settings/statistics", + rmap.connect("edit_repo_statistics_update", "/{repo_name:.*?}/settings/statistics", controller='admin/repos', action="edit_statistics", - conditions=dict(method=["PUT"], function=check_repo)) + conditions=dict(method=["POST"], function=check_repo)) #still working url for backward compat. rmap.connect('raw_changeset_home_depraced', diff --git a/kallithea/templates/admin/repos/repo_edit_statistics.html b/kallithea/templates/admin/repos/repo_edit_statistics.html --- a/kallithea/templates/admin/repos/repo_edit_statistics.html +++ b/kallithea/templates/admin/repos/repo_edit_statistics.html @@ -1,4 +1,4 @@ -${h.form(url('edit_repo_statistics', repo_name=c.repo_info.repo_name), method='put')} +${h.form(url('edit_repo_statistics_update', repo_name=c.repo_info.repo_name))}