diff --git a/web/pgadmin/browser/server_groups/servers/tablespaces/__init__.py b/web/pgadmin/browser/server_groups/servers/tablespaces/__init__.py index 3676da811d1..73277ebcbd6 100644 --- a/web/pgadmin/browser/server_groups/servers/tablespaces/__init__.py +++ b/web/pgadmin/browser/server_groups/servers/tablespaces/__init__.py @@ -601,7 +601,7 @@ def sql(self, gid, sid, tsid): if not old_data['name'].startswith('pg_'): SQL = render_template( "/".join([self.template_path, self._CREATE_SQL]), - data=old_data + data=old_data, conn=self.conn ) SQL += "\n" SQL += render_template(