-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
Error: Object of type datetime is not JSON serializable #146
Comments
Definitely a bug! |
Looks like this replicates the bug:
|
Or this:
This works and returns a column called This does not work:
|
This is the code causing the error: django-sql-dashboard/django_sql_dashboard/utils.py Lines 53 to 56 in ea3c2be
|
OK, fix is out in 1.0.2: https://github.com/simonw/django-sql-dashboard/releases/tag/1.0.2 |
Awesome! Thanks so much :) |
For this bug fix: simonw/django-sql-dashboard#146
Hello!
This project is great. I've run into an issue though. I was trying to run this (unfinished) query:
The problem is that django-sql-dashboard errors out because it doesn't know how to serialize the
s.updated_at
DateTime field for working witharray_agg
.As far as I could tell the only way to fix this would be to fork the codebase? Am I missing something? Thanks!
The text was updated successfully, but these errors were encountered: