def _id_from_user(self, user):
        try:
            return 'User %d' % user.pk
        except AttributeError as e:
            raise IdentificationError(e)
dataset/ETHPy150Open MontmereLimited/django-lean/django_lean/lean_analytics/base.py/BaseAnalytics._id_from_user/original