From 988a2e2d8e96f178c6142fd8262c779b09bf8ce6 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Wed, 14 Dec 2016 10:46:45 -0800 Subject: [PATCH] generate_invite_links: Use realm host properly. --- zerver/management/commands/generate_invite_links.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zerver/management/commands/generate_invite_links.py b/zerver/management/commands/generate_invite_links.py index d4da47e305..bcd8b6b488 100644 --- a/zerver/management/commands/generate_invite_links.py +++ b/zerver/management/commands/generate_invite_links.py @@ -62,4 +62,4 @@ class Command(BaseCommand): else: prereg_user = PreregistrationUser(email=email) prereg_user.save() - print(email + ": " + Confirmation.objects.get_link_for_object(prereg_user)) + print(email + ": " + Confirmation.objects.get_link_for_object(prereg_user, host=realm.host))