Skip to content

Commit

Permalink
Fix Exception: 'UserProfile' object has no attribute 'id'
Browse files Browse the repository at this point in the history
  • Loading branch information
DjangoCRM committed Nov 14, 2024
1 parent ed4ba5a commit ed7a76a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/utils/chat_link.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ def get_chat_link(obj) -> str:
url, content_type.id, obj.pk, view_chat_str, chat_icon))
if getattr(obj, 'is_unread_chat', None):
value = mark_safe(chat_link_str.format(
url, content_type.id, obj.id, view_chat_str, chat_red_icon))
url, content_type.id, obj.pk, view_chat_str, chat_red_icon))
return value

0 comments on commit ed7a76a

Please sign in to comment.