def milestones_achieved_by_user(user, namespace):
 if (not settings.FEATURES.get('MILESTONES_APP')):
  return None
 return milestones_api.get_user_milestones({'id': user.id}, namespace)

def milestones_achieved_by_user ( user , namespace ) : if ( not settings . FEATURES . get ( 'MILESTONES_APP' ) ) : return None return milestones_api . get_user_milestones ( { 'id' : user . id } , namespace )
it would fetch list of milestones completed by user .