'Add the supplied django users to this role.'

def add_users(self, *users):

    from student.models import CourseAccessRole
    for user in users:
        if (user.is_authenticated() and user.is_active and (not self.has_user(user))):
            entry = CourseAccessRole(user=user, role=self._role_name, course_id=self.course_key, org=self.org)
            entry.save()
            if hasattr(user, '_roles'):
                del user._roles
