6👍
✅
await sync_to_async(chart.save)
should be
await sync_to_async(chart.save)()
The sync_to_async
function wraps chart.save
and returns an asynchronous version of it, which then still has to be called to execute.
- [Django]-Errors while installing python packages
- [Django]-How to store HDF5 (HDF Store) in a Django model field
Source:stackexchange.com