mirror of
https://github.com/dkmstr/openuds.git
synced 2024-12-24 21:34:41 +03:00
Merge remote-tracking branch 'origin/v3.5'
This commit is contained in:
commit
a3bcedc38f
@ -97,8 +97,8 @@ default_app_config = 'uds.UDSAppConfig'
|
||||
|
||||
|
||||
@receiver(connection_created)
|
||||
def extend_sqlite(connection, **kwargs):
|
||||
if connection.vendor == "sqlite":
|
||||
def extend_sqlite(connection=None, **kwargs):
|
||||
if connection and connection.vendor == "sqlite":
|
||||
logger.debug('Connection vendor is sqlite, extending methods')
|
||||
cursor = connection.cursor()
|
||||
cursor.execute('PRAGMA synchronous=OFF')
|
||||
|
Loading…
Reference in New Issue
Block a user