From 9e3271e3cb007247faa367d78b2f8b78c89444db Mon Sep 17 00:00:00 2001 From: Rocky Duan Date: Wed, 25 Jul 2012 18:25:28 -0400 Subject: [PATCH] fixed eager --- lms/djangoapps/django_comment_client/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lms/djangoapps/django_comment_client/utils.py b/lms/djangoapps/django_comment_client/utils.py index 24f4f5115a..603029a7f6 100644 --- a/lms/djangoapps/django_comment_client/utils.py +++ b/lms/djangoapps/django_comment_client/utils.py @@ -17,7 +17,7 @@ def get_full_modules(): class_path = settings.MODULESTORE['default']['ENGINE'] module_path, _, class_name = class_path.rpartition('.') class_ = getattr(import_module(module_path), class_name) - modulestore = class_(eager=True, **settings.MODULESTORE['default']['OPTIONS']) + modulestore = class_(**dict(settings.MODULESTORE['default']['OPTIONS'].items() + [('eager', True)])) _FULLMODULES = modulestore.modules return _FULLMODULES