Give children the None scope

This commit is contained in:
Calen Pennington
2012-12-21 13:23:09 -05:00
parent fa75245e8a
commit 265a2e7630
2 changed files with 2 additions and 2 deletions

View File

@@ -121,7 +121,7 @@ class ParentModelMetaclass(type):
"""
def __new__(cls, name, bases, attrs):
if attrs.get('has_children', False):
attrs['children'] = List(help='The children of this XModule', default=[], scope=Scope.settings)
attrs['children'] = List(help='The children of this XModule', default=[], scope=None)
else:
attrs['has_children'] = False

View File

@@ -36,7 +36,7 @@ def test_parent_metaclass():
assert not hasattr(WithoutChildren, 'children')
assert isinstance(HasChildren.children, List)
assert_equals(Scope.settings, HasChildren.children.scope)
assert_equals(None, HasChildren.children.scope)
def test_field_access():