Django Ajax CRUD

Hello all,

I have follow the Ajax CRUD tutorial. Thanks to Vitor for this really amazing tuto.

Imagine you have a book with a foreign key to an author. The author’s id is known in template containing “create book” button.
I have to link book with author in DB.
How can I pass author id when I create a book in ajax function and in book_list.html button.

Thanks for help.

J-Louis.