Skip to content

Commit

Permalink
Use correct signal
Browse files Browse the repository at this point in the history
  • Loading branch information
rixx committed Nov 7, 2023
1 parent bf799b4 commit ad12567
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pretalx_pages/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from django.utils.html import escape
from django.utils.translation import gettext_lazy as _
from pretalx.cfp.signals import footer_link
from pretalx.common.signals import activitylog_display, activitylog_display_object
from pretalx.common.signals import activitylog_display, activitylog_object_link
from pretalx.common.urls import build_absolute_uri
from pretalx.orga.signals import event_copy_data, nav_event

Expand Down Expand Up @@ -46,8 +46,8 @@ def pretalx_activitylog_display(sender, activitylog, **kwargs):
return names.get(event_type)


@receiver(signal=activitylog_display_object)
def pretalx_activitylog_display_object(sender, activitylog, **kwargs):
@receiver(signal=activitylog_object_link)
def pretalx_activitylog_object_link(sender, activitylog, **kwargs):
if isinstance(activitylog.content_object, Page):
return (
_("Page")
Expand Down

0 comments on commit ad12567

Please sign in to comment.