Skip to content
Snippets Groups Projects
Commit 41568916 authored by Pierre-antoine Comby's avatar Pierre-antoine Comby
Browse files

error fixes

parent ba04a655
No related branches found
No related tags found
1 merge request!54Meilleurs vues pour la gestion des boutons
......@@ -109,7 +109,7 @@ class TransactionTemplateCreateView(LoginRequiredMixin, CreateView):
"""
model = TransactionTemplate
form_class = TransactionTemplateForm
success_url = reverse_lazy('template_list')
success_url = reverse_lazy('note:template_list')
class TransactionTemplateListView(LoginRequiredMixin, SingleTableView):
"""
......
......@@ -2,6 +2,7 @@
# SPDX-License-Identifier: GPL-3.0-or-later
from rest_framework.permissions import DjangoObjectPermissions
from .backends import PermissionBackend
SAFE_METHODS = ('HEAD', 'OPTIONS', )
......
......@@ -60,7 +60,6 @@ function search_field_moved(secondfield) {
}
// on click of button "delete" , call the API
function delete_button(button_id){
console.log(button_id);
$.ajax({
url:"/api/note/transaction/template/"+button_id,
method:"DELETE",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment