AnthonyHonstain/bigfitnessgains — pull request #9 by AnthonyHonstain (2014-06-03 01:54:07+00:00)
Title: Ajax workoutset

I branched off of your functional-test-start branch, this is a rough shot across the bow at using the REST framework in conjunction with some AJAX functionality. I am not convinced that anything good is happening in my code, but it does let me start quickly recording workout data (instead of doing the full form submit).

I got this working with the CSRF token, but I have not finished reading through the docs to see if what I am doing is actually a safe thing to do (you can see all the hoops I am jumping through to retrieve the cookie with JQuery (copy pasted from the django docs - needs more research)). I have never tried to do anything like this before so, another set of eyes would help.

Also includes logic to update table with response from the POST.
WARNING - Not dealing with foreign keys yet.
![image](https://cloud.githubusercontent.com/assets/1624189/3155444/1e7d472c-eac1-11e3-8832-4bf02f90416b.png)