[SOLVED] Server-side DataTable works with 8 columns, breaks with 9

[SOLVED] Server-side DataTable works with 8 columns, breaks with 9

raddevonraddevon Posts: 15Questions: 0Answers: 0
edited July 2012 in General
As long as I have only 8 columns, my table works fine, but as soon as I add number 9, I start getting a 500 KeyError on my AJAX request. Needless to say, the table is never populated with any data. Anyone have any ideas?

Here's my debug data: http://debug.datatables.net/ufipib

Replies

  • raddevonraddevon Posts: 15Questions: 0Answers: 0
    Found the problem. I have a Django view function wrapping the function that fetches the data. This provides it with my column names. It had not been updated. It still had column names for only 8 columns. I did it so long ago, I had completely forgotten it existed! Added the new column there, and I get data!
This discussion has been closed.