Hey, if you’re seeing SynchronousOnlyOperation it means you’ve been calling the ORM in an unsafe fashion the entire time; you need to access the ORM via a synchronous context, otherwise you run the risk of corrupting your database.
The easiest thing to do would be to write your database access in a separate function, and then call that function with sync_to_async, like so:
from asgiref.sync import sync_to_async
def my_db_function():
<do orm stuff>
await sync_to_async(my_db_function)()