django: patch_db_connections: fix RuntimeError
django: patch_db_connections: fix RuntimeError

When patch_db_connections() is used together with aiohttp-wsgi,
asyncio.Task.get_current_task() doesn't return None as expected but
raises a RuntimeError.

The RuntimeError says there is no event loop running in 'Thread-${NUMBER}'
which is correct, so we return the original thread safe Django connections to
have the standard transaction behavior in the wsgi container.

Signed-off-by: Florian Scherf <01ea296d94b35b47de034b473506bbbc8961ebf2@pengutronix.de>

pengutronix/aiohttp-json-rpc,pengutronix/aiohttp-json-rpc,pengutronix/aiohttp-json-rpc