Skip to content

Commit

Permalink
Fix: project redirect to target account (#2102)
Browse files Browse the repository at this point in the history
  • Loading branch information
jace authored Jul 25, 2024
1 parent 7dba9cc commit 1da636c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion funnel/models/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -1560,7 +1560,10 @@ def __repr__(self) -> str:
def redirect_view_args(self) -> dict[str, str]:
"""View arguments to substitute in a URL."""
if self.project:
return {'account': self.account.urlname, 'project': self.project.name}
return {
'account': self.project.account.urlname,
'project': self.project.name,
}
return {}

def is_over_a_day_old(self) -> bool:
Expand Down

0 comments on commit 1da636c

Please sign in to comment.