Skip to content
This repository has been archived by the owner on Nov 7, 2024. It is now read-only.

Commit

Permalink
djangoviz/management: setup user-agent header (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
yonidavidson authored May 22, 2023
1 parent 738cf78 commit d1695b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion djangoviz/management/commands/djangoviz.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit d1695b5

Please sign in to comment.