From 56909d6ef481371104af3cf5b14bf168999dfd21 Mon Sep 17 00:00:00 2001 From: Valentin Lobstein Date: Fri, 13 Mar 2026 09:33:23 +0100 Subject: [PATCH] Fix: Use correct API Key label for v2 token message On v2 tokens, {t} prints the key not the token. Update the message to say "API Key" and restore the auth header prefix hint. --- docker/super_user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/super_user.py b/docker/super_user.py index 9293cb6..755d62b 100644 --- a/docker/super_user.py +++ b/docker/super_user.py @@ -34,4 +34,4 @@ if not User.objects.filter(username=su_name): print(f"💡 Superuser Username: {su_name}, E-Mail: {su_email}") else: t = Token.objects.create(user=u, token=su_api_token, version=TokenVersionChoices.V2) - print(f"💡 Superuser Username: {su_name}, E-Mail: {su_email}, API Token: {t}") + print(f"💡 Superuser Username: {su_name}, E-Mail: {su_email}, API Key: {t}, (use with '{t.get_auth_header_prefix()}')")