From 6296b5ff43b0a6209443679350bf15b399406699 Mon Sep 17 00:00:00 2001 From: BonfaceKilz Date: Mon, 25 Oct 2021 12:07:56 +0300 Subject: change_resource_owner.html: Update endpoint for user-search This link has the {{ resource_id }} set because it's a required argument for the "@edit_admins_access_required" decorator --- wqflask/wqflask/templates/admin/change_resource_owner.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wqflask/wqflask/templates/admin/change_resource_owner.html b/wqflask/wqflask/templates/admin/change_resource_owner.html index ae9409b0..b88d680d 100644 --- a/wqflask/wqflask/templates/admin/change_resource_owner.html +++ b/wqflask/wqflask/templates/admin/change_resource_owner.html @@ -57,7 +57,7 @@ $('#find_users').click(function() { $.ajax({ method: "POST", - url: "/search_for_users", + url: "/resource-management/{{ resource_id }}/users/search", data: { user_name: $('input[name=user_name]').val(), user_email: $('input[name=user_email]').val() -- cgit v1.2.3