-
Notifications
You must be signed in to change notification settings - Fork 4
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
Strange issue on Tables: they appear empty on first load... #27
Comments
Actually I do get an error, its on the bowser console:
|
I think there is a problem with the Datatable jquery plugin. If I restart django, the first time I load a dashboard, I see this in the page code:
If I reload the page, I see this:
After the reload, I get an extra .js file. But I cannot figure out why. |
Modifying class Dashboard.get_media() to:
Produces during the first render of the dashboard, after django restart:
Just hitting reload, the printed output changes:
The component |
Modifying
Prints the first time:
Thus, self.value is class TableSerializer, causing Calling it for the second time:
Now value is How to fix this? |
The dashboard that generates all these, is:
|
And probably this happens as TableSerializer inherits |
My temporary solution is to define a mixin and use it along TableSerializer:
|
Hi all,
I am observing a strange behaviour, which I haven't found why (I get no exception).
When I restart django (the db is not restarted), all my dashboard tables appear empty the first time they are presented. Reloading the page, and all subsequent reloads work as expected. But the first time a specific table is requested, it is empty.
Simple tables on the other hand, always work fine.
What can the problem be?
How to debug this?
It happens in all tables, not just a specific one.
The text was updated successfully, but these errors were encountered: