diff --git a/orgs/models.py b/orgs/models.py index 33219ead2..5a19dad78 100644 --- a/orgs/models.py +++ b/orgs/models.py @@ -12,7 +12,7 @@ from app_users.models import AppUser from daras_ai_v2 import settings -from daras_ai_v2.fastapi_tricks import get_route_url +from daras_ai_v2.fastapi_tricks import get_app_route_url from daras_ai_v2.crypto import get_random_doc_id from orgs.tasks import send_auto_accepted_email, send_invitation_email @@ -272,9 +272,9 @@ def auto_accept(self): def get_url(self): from routers.account import invitation_route - return get_route_url( + return get_app_route_url( invitation_route, - params={"invite_id": self.invite_id, "org_slug": self.org.get_slug()}, + path_params={"invite_id": self.invite_id, "org_slug": self.org.get_slug()}, ) def send_email(self):