Show Foreign key value in Django REST Framework Datatables
Show Foreign key value in Django REST Framework Datatables
I made this a SOF question as I can't seem to get the code posted properly on this forum. I apologize if this is not the proper way to post here but the SOF question looked much cleaner and I think will help everyone.
https://stackoverflow.com/questions/64841959/foreign-key-value-in-django-rest-framework-datatables
Problem
I get the popular error message after trying to show serialized data that is foreign key based. I've tried all the options on the "please see" page mentioned below. I think this data is being shown as a string. Some of the rows will also show null. Tried an if statement but still no fix.
Error message:
DataTables warning: table id=entrytable - Requested unknown parameter 'symbol' for row 0, column 9. For more information about this error, please see http://datatables.net/tn/4
Answers
I found the answer after going through the documentation a 10th+ time. I think organizing this question helped. It's also decided to wake up at 6am and try again. It's now 8:18 and I got it!
entry_list.html