From 443579b3ba1c55ff35f469716d0de6559f751808 Mon Sep 17 00:00:00 2001 From: webbrain-one <295484252+webbrain-one@users.noreply.github.com> Date: Wed, 12 Aug 2026 06:05:34 +0300 Subject: [PATCH] Update runshell signature for Django 3.1 compatibility Django 3.1 changed the client's runshell() method to accept a `parameters` argument. Update django-pgcli's implementation to match this change, fixing the TypeError when running `manage.py dbshell`. Closes #15 --- django_pgcli/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django_pgcli/__init__.py b/django_pgcli/__init__.py index a517342..5971fbc 100755 --- a/django_pgcli/__init__.py +++ b/django_pgcli/__init__.py @@ -12,7 +12,7 @@ class PgCLIDatabaseClient(DatabaseClient): executable_name = 'pgcli' - def runshell(self): + def runshell(self, parameters=None): PgCLIDatabaseClient.runshell_db(self.connection.get_connection_params()) base.DatabaseWrapper.__old_database_client_class = base.DatabaseClient