Skip to content

Commit

Permalink
follows: fix templatetag setting the project name instead of the slug
Browse files Browse the repository at this point in the history
  • Loading branch information
goapunk authored and philli-m committed Oct 31, 2023
1 parent aca7fd9 commit 010fbcd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion adhocracy4/follows/templatetags/react_follows.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def react_follows(context, project):
authenticated_as = None
if user.is_authenticated:
authenticated_as = user.username
attributes = {"project": project.name, "authenticatedAs": authenticated_as}
attributes = {"project": project.slug, "authenticatedAs": authenticated_as}
return format_html(
'<span data-a4-widget="follows" data-attributes="{attributes}"></span>',
attributes=json.dumps(attributes),
Expand Down
3 changes: 3 additions & 0 deletions changelog/_0007.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
### Fixed

- follow templatetag is setting the project slug instead of the name

0 comments on commit 010fbcd

Please sign in to comment.