diff options
author | Carl Meyer <carl@oddbird.net> | 2012-01-12 09:01:46 -0700 |
---|---|---|
committer | Carl Meyer <carl@oddbird.net> | 2012-01-12 09:01:46 -0700 |
commit | 99ffa8c49df4baa9681d649ce0b19b6d3b5ad99a (patch) | |
tree | f0395eaea6f8b882abc3fda55f9bbf71176968f4 /factory/containers.py | |
parent | 8aec45386aaf410a36bdf57ebf24cfe9f1fdf3b2 (diff) | |
download | factory-boy-99ffa8c49df4baa9681d649ce0b19b6d3b5ad99a.tar factory-boy-99ffa8c49df4baa9681d649ce0b19b6d3b5ad99a.tar.gz |
Added support for staticmethods on factories as well.
Diffstat (limited to 'factory/containers.py')
-rw-r--r-- | factory/containers.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/factory/containers.py b/factory/containers.py index 847b2c0..68e1e9f 100644 --- a/factory/containers.py +++ b/factory/containers.py @@ -112,7 +112,7 @@ class DeclarationDict(dict): is private (name starts with '_') or a classmethod or staticmethod. """ - if isinstance(value, classmethod): + if isinstance(value, (classmethod, staticmethod)): return False elif isinstance(value, declarations.OrderedDeclaration): return True |