c991b667ed57 — Peter Sanchez 13 years ago
Added ability to pass variables to EasyConfig.get_object
1 files changed, 2 insertions(+), 2 deletions(-)

M easyconfig/__init__.py
M easyconfig/__init__.py +2 -2
@@ 40,13 40,13 @@ class EasyConfig(object):
         return getattr(settings, self.setting_name, self.default_module)
 
 
-    def get_object(self, method, default_obj):
+    def get_object(self, method, default_obj, *args, **kwargs):
         ''' Check that the support config is custom, and if so, that the 
             right methods exist. If not, return the default_obj
         '''
         if self._get_config_name() != self.default_module:
             config = self._get_config()
             if hasattr(config, method):
-                return getattr(config, method)()
+                return getattr(config, method)(*args, **kwargs)
 
         return default_obj