1👍
✅
You are saving the id to the variable id
var id = $(this).attr('id');
but you are sending the variable entryname
(which does not exist so is undefined
)
data: { entryname:entryname },
What you want it:
data: { entryname: id },
Update
You are also missing a "
entry.name <div class="delete_button" id="{{ entry.name }}">delete</div>
0👍
You have
data: { entryname:entryname },
but no entryname
variable defined. there is an id
variable defined. Maybe it should be
data: { entryname:id },
👤Musa
- [Answer]-Can we depend on Django not verifying field length?
- [Answer]-Django search in db for similar entries my string name
- [Answer]-This XML file does not appear to have any style information associated with it. The document tree is shown below.2
- [Answer]-Executing a single test case with django_webtest
Source:stackexchange.com