Closed simonw closed 3 years ago
Here's the cause of the bug: https://github.com/simonw/django-sql-dashboard/blob/9f792ec5ebbf111bdc3d9ea80da81bbc940e071e/django_sql_dashboard/views.py#L140-L156
In particular this bit: https://github.com/simonw/django-sql-dashboard/blob/9f792ec5ebbf111bdc3d9ea80da81bbc940e071e/django_sql_dashboard/views.py#L153-L156
I tried this query:
And the resulting table had weird values in the
id
column - because all three of those tables returned an ID and we run them through a dictionary, which means the last one wins.