To save data with AJAX in Django you will have to:
1. Create the HTML table
2. Populate data into your table
3. Add the edit button or link in the table
4. Add the required jQuery code
5. Get data from table to modal
6. Create a class base view or function in views.py for the required URL
Source code: https://github.com/geekpius/jQuery-Django-Tutorial