From d1695b55fc6d5c559fd0a6daec7e60b0b7629a73 Mon Sep 17 00:00:00 2001 From: Yoni Davidson Date: Mon, 22 May 2023 10:49:37 +0300 Subject: [PATCH] djangoviz/management: setup user-agent header (#12) --- djangoviz/management/commands/djangoviz.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/djangoviz/management/commands/djangoviz.py b/djangoviz/management/commands/djangoviz.py index 3064c6a..ab40e2c 100644 --- a/djangoviz/management/commands/djangoviz.py +++ b/djangoviz/management/commands/djangoviz.py @@ -118,7 +118,7 @@ def handle(self, *args, **options): self.stderr.write(self.style.ERROR("no migrations found")) return client = GraphQLClient(endpoint=API_ENDPOINT) - client.inject_token("user-agent", f"djangoviz/{__version__}") + client.inject_token(token=f"djangoviz/{__version__}", headername="user-agent") try: atlas_schema = _get_atlas_schema(client, migrations, db_driver) if atlas_schema is None: