mirror of https://gitlab.crans.org/bde/nk20
error fixes
This commit is contained in:
parent
ba04a6555f
commit
41568916b8
|
@ -109,7 +109,7 @@ class TransactionTemplateCreateView(LoginRequiredMixin, CreateView):
|
||||||
"""
|
"""
|
||||||
model = TransactionTemplate
|
model = TransactionTemplate
|
||||||
form_class = TransactionTemplateForm
|
form_class = TransactionTemplateForm
|
||||||
success_url = reverse_lazy('template_list')
|
success_url = reverse_lazy('note:template_list')
|
||||||
|
|
||||||
class TransactionTemplateListView(LoginRequiredMixin, SingleTableView):
|
class TransactionTemplateListView(LoginRequiredMixin, SingleTableView):
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
from rest_framework.permissions import DjangoObjectPermissions
|
from rest_framework.permissions import DjangoObjectPermissions
|
||||||
|
from .backends import PermissionBackend
|
||||||
|
|
||||||
SAFE_METHODS = ('HEAD', 'OPTIONS', )
|
SAFE_METHODS = ('HEAD', 'OPTIONS', )
|
||||||
|
|
||||||
|
|
|
@ -60,7 +60,6 @@ function search_field_moved(secondfield) {
|
||||||
}
|
}
|
||||||
// on click of button "delete" , call the API
|
// on click of button "delete" , call the API
|
||||||
function delete_button(button_id){
|
function delete_button(button_id){
|
||||||
console.log(button_id);
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url:"/api/note/transaction/template/"+button_id,
|
url:"/api/note/transaction/template/"+button_id,
|
||||||
method:"DELETE",
|
method:"DELETE",
|
||||||
|
|
Loading…
Reference in New Issue