diff options
Diffstat (limited to 'src/lib/Server/Reports/updatefix.py')
-rw-r--r-- | src/lib/Server/Reports/updatefix.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/Server/Reports/updatefix.py b/src/lib/Server/Reports/updatefix.py index dde330214..25cfc3fe4 100644 --- a/src/lib/Server/Reports/updatefix.py +++ b/src/lib/Server/Reports/updatefix.py @@ -95,6 +95,10 @@ def dosync(): #we should get here if the database is new fresh = True + # ensure database connection are close, so that the management can do it's job right + cursor.close() + connection.close() + # Do the syncdb according to the django version if "call_command" in dir(django.core.management): # this is available since django 1.0 alpha. # not yet tested for full functionnality |