Skip to content

Commit

Permalink
rename get_route_url -> get_app_route_url in orgs/
Browse files Browse the repository at this point in the history
  • Loading branch information
nikochiko committed Jul 23, 2024
1 parent 3eee1da commit 32449b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions orgs/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 32449b9

Please sign in to comment.