'Returns whether the course has social sharing url.'

def has_social_sharing_url(self):

    is_social_sharing_enabled = getattr(settings, 'SOCIAL_SHARING_SETTINGS', {}).get('CUSTOM_COURSE_URLS')
    return (is_social_sharing_enabled and bool(self.social_sharing_url))
