diff -r 0c76b026c926 django/utils/dictconfig.py
|
a
|
b
|
|
| 246 | 246 | def configure_custom(self, config): |
| 247 | 247 | """Configure an object with a user-supplied factory.""" |
| 248 | 248 | c = config.pop('()') |
| 249 | | if not hasattr(c, '__call__') and hasattr(types, 'ClassType') and type(c) != types.ClassType: |
| | 249 | if not hasattr(c, '__call__') and type(c) != types.ClassType: |
| 250 | 250 | c = self.resolve(c) |
| 251 | 251 | props = config.pop('.', None) |
| 252 | 252 | # Check for valid identifiers |
| … |
… |
|
| 467 | 467 | filters = config.pop('filters', None) |
| 468 | 468 | if '()' in config: |
| 469 | 469 | c = config.pop('()') |
| 470 | | if not hasattr(c, '__call__') and hasattr(types, 'ClassType') and type(c) != types.ClassType: |
| | 470 | if not hasattr(c, '__call__') and type(c) != types.ClassType: |
| 471 | 471 | c = self.resolve(c) |
| 472 | 472 | factory = c |
| 473 | 473 | else: |