Skip to content
Snippets Groups Projects
Commit 06d680cd authored by Calen Pennington's avatar Calen Pennington
Browse files

Don't use Empty directly, let the manager handle it

parent 9dc48c00
No related branches found
No related tags found
No related merge requests found
......@@ -72,7 +72,7 @@ class RoleBase(AccessRole):
"""
Roles by type (e.g., instructor, beta_user) and optionally org, course_key
"""
def __init__(self, role_name, org='', course_key=CourseKeyField.Empty):
def __init__(self, role_name, org='', course_key=None):
"""
Create role from required role_name w/ optional org and course_key. You may just provide a role
name if it's a global role (not constrained to an org or course). Provide org if constrained to
......@@ -81,9 +81,6 @@ class RoleBase(AccessRole):
"""
super(RoleBase, self).__init__()
if course_key is None:
raise TypeError('course_key must be CourseKeyField.Empty or a valid CourseKey')
self.org = org
self.course_key = course_key
self._role_name = role_name
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment