def notify(self): from django.contrib.auth.models import AnonymousUser from sentry.api.serializers import serialize, UserReportWithGroupSerializer from sentry.tasks.signals import signal signal.delay( name="user-reports.created", project_id=self.project_id, payload={"report": serialize(self, AnonymousUser(), UserReportWithGroupSerializer())}, )
def notify(self): from django.contrib.auth.models import AnonymousUser from sentry.api.serializers import ( serialize, ProjectUserReportSerializer ) from sentry.tasks.signals import signal signal.delay( name='user-reports.created', project_id=self.project_id, payload={ 'report': serialize(self, AnonymousUser(), ProjectUserReportSerializer()), }, )