'Returns absolute URL of the User'

def get_absolute_url(self, module='identities'):

    if ((not module) or (module == 'identities')):
        try:
            return reverse('identities_user_view', args=[self.id])
        except Exception:
            return ''
    else:
        try:
            return reverse('core_administration_user_view', args=[self.id])
        except Exception:
            return ''
