- histories = IdentifierHistory.objects.filter(user__email__iexact=ticket.user.email)
- histories = '\n'.join(histories.values_list('identifier', flat=True))
- histories = '%s\n' % histories if histories else ''
+ results = signals.on_cas_collect_histories.send(sender=validate, for_email=ticket.user.email)
+ histories = '\n'.join('\n'.join(rs) for rc, rs in results)