Skip to content

Commit

Permalink
fix: login as
Browse files Browse the repository at this point in the history
  • Loading branch information
teehamaral committed Jul 2, 2024
1 parent af6d4cd commit 8c6ca29
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion temba/orgs/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2213,7 +2213,7 @@ def get_context_data(self, **kwargs):
def lookup_field_link(self, context, field, obj):
if field == "owner":
owner = obj.get_owner()
return reverse("orgs.user_update", args=[owner.pk])
return reverse("users.user_update", args=[owner.pk])
return super().lookup_field_link(context, field, obj)

def get_created_by(self, obj): # pragma: needs cover
Expand Down
2 changes: 1 addition & 1 deletion templates/orgs/org_update.haml
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,5 @@
.cap-label
{{user_role.role_display}}
-for user in user_role.users
%a{href:'{% url "orgs.user_update" user.id %}'}
%a{href:'{% url "users.user_update" user.id %}'}
{{user.email}}

0 comments on commit 8c6ca29

Please sign in to comment.