diff --git a/apps/core/jobs.py b/apps/core/jobs.py index f4c8c95..9272b9c 100644 --- a/apps/core/jobs.py +++ b/apps/core/jobs.py @@ -57,7 +57,7 @@ def prepare(self): if self._task.assigment.schemas: conn = psycopg.connect( host=settings.DATABASES['default']['HOST'], - database=self._database_name, + dbname=self._database_name, user=settings.DATABASES['default']['USER'], password=settings.DATABASES['default']['PASSWORD'], port=settings.DATABASES['default']['PORT']