1👍
✅
Now that I’m coffeed up, let me take another shot at this.
So, it appears that you are sending over the template to be rendered, but in your success function, you never actually do anything with it. All you do is pop open the modal.
you need to so something like $("#whatever div is").html(res)
then pop open the modal
Check out number 14 on this answer:
Bootstrap 3 – How to load content in modal body via AJAX?
edit –
You also don’t have to send a template, you can just send the variable, which is what I think you are trying to do.
something like –
return JsonResponse(lesson.to_dict(),safe=False)
but you still have to tell the template where you want the changes. If you post the Modal, I should be able to help with that.
Source:stackexchange.com