-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
On Embedded table, column header displays "None" #43
Comments
So i find out that this is because the model isn't explicitly specified . While the datatable is constructed from the ajax_url and option (which contains the column names) , the column title have another opinion and expect it's assignment from the model field name apparently. |
Thanks for your patience so far! I'm sorry you've had trouble with the model value. I'll be happy to dig in and help get to the bottom of this one. I've just returned from a PyCon trip and now today I'm moving apartments, but by tomorrow I should be situated and able to really have a look. Is your code pretty much the same as the pattern shown on that demo? If so, I'll try to construct a sample on my end and figure out what I can. |
Oh, I misread your first comment, thinking that the demo was working while yours wasn't. I should be able to figure that one out. Sorry for the trouble! |
My hunch is that you can add a third optional arg to Let me know if that helps solve the problem, and I'll get that documentation updated when I'm able. |
Lucky you just returning from PyCon trip. :) Good luck with moving apartments & Thanks for that cool piece of code. Best |
Addresses concern raised in #43 about how to correctly show table headers on a separate view embedding a table.
When working on embedded table , .. the datatable column header shows "None" instead of the actual column name.
And it's visible on the demo:
http://django-datatable-view.appspot.com/embedded-table/
The text was updated successfully, but these errors were encountered: