diff options
author | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2015-03-03 22:47:42 +0100 |
---|---|---|
committer | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2015-03-03 22:47:42 +0100 |
commit | b6f6ae48c796d722f2a0209963d525b2f8b8fe0f (patch) | |
tree | aaf9a47bd1bcc1c5570dc79a3450181d7bb004f4 | |
parent | efa9d3c0d165a4c49def26b423711ed28eb2d264 (diff) | |
download | factory-boy-b6f6ae48c796d722f2a0209963d525b2f8b8fe0f.tar factory-boy-b6f6ae48c796d722f2a0209963d525b2f8b8fe0f.tar.gz |
Fix bad default value for Factory.declarations (Closes #162).
-rw-r--r-- | factory/base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/factory/base.py b/factory/base.py index efff976..7215f00 100644 --- a/factory/base.py +++ b/factory/base.py @@ -409,7 +409,7 @@ class BaseFactory(object): retrieved DeclarationDict. """ decls = cls._meta.declarations.copy() - decls.update(extra_defs) + decls.update(extra_defs or {}) return decls @classmethod |