summaryrefslogtreecommitdiff
path: root/factory
diff options
context:
space:
mode:
authorRaphaël Barrois <raphael.barrois@polytechnique.org>2015-03-03 22:47:42 +0100
committerRaphaël Barrois <raphael.barrois@polytechnique.org>2015-03-03 22:47:42 +0100
commitb6f6ae48c796d722f2a0209963d525b2f8b8fe0f (patch)
treeaaf9a47bd1bcc1c5570dc79a3450181d7bb004f4 /factory
parentefa9d3c0d165a4c49def26b423711ed28eb2d264 (diff)
downloadfactory-boy-b6f6ae48c796d722f2a0209963d525b2f8b8fe0f.tar
factory-boy-b6f6ae48c796d722f2a0209963d525b2f8b8fe0f.tar.gz
Fix bad default value for Factory.declarations (Closes #162).
Diffstat (limited to 'factory')
-rw-r--r--factory/base.py2
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