Skip to content

Commit

Permalink
Add move invite_delete_url inside if block
Browse files Browse the repository at this point in the history
  • Loading branch information
pxwxnvermx committed Nov 20, 2024
1 parent a5489df commit a7cca43
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions commcare_connect/opportunity/tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,11 +178,11 @@ def render_display_name(self, record):
return record.opportunity_access.display_name

def render_view_profile(self, record):
invite_delete_url = reverse(
"opportunity:user_invite_delete",
args=(self.org_slug, record.opportunity.id, record.id),
)
if not getattr(record.opportunity_access, "accepted", False):
invite_delete_url = reverse(
"opportunity:user_invite_delete",
args=(self.org_slug, record.opportunity.id, record.id),
)
return format_html(
(
'<button hx-post="{}" hx-swap="none" '
Expand Down

0 comments on commit a7cca43

Please sign in to comment.