Skip to content

Commit

Permalink
add content type to context (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
gamboz authored Apr 15, 2024
1 parent 85b9eb3 commit 2c7dd55
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion django_comments_ink/views/reacting.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,8 @@ def get(self, request, content_type_id, object_pk, reaction_value):
raise Http404(_("Not enough users"))

context = self.get_context_data(
object=self.reaction.content_object, reaction=reaction_enum
object=self.reaction.content_object,
reaction=reaction_enum,
content_type=self.ctype,
)
return self.render_to_response(context)

0 comments on commit 2c7dd55

Please sign in to comment.