summaryrefslogtreecommitdiff
path: root/factory
diff options
context:
space:
mode:
authorRaphaël Barrois <raphael.barrois@polyconseil.fr>2014-06-23 11:09:53 +0200
committerRaphaël Barrois <raphael.barrois@polyconseil.fr>2014-06-23 11:09:53 +0200
commite2ef7c96ed74b35b9dec75a7f222b6ffa9214c10 (patch)
tree864605e4587bc41c6814cf1013f960c261a624ed /factory
parent6269fef31787aba4956612febfa3f4944fda947b (diff)
downloadfactory-boy-e2ef7c96ed74b35b9dec75a7f222b6ffa9214c10.tar
factory-boy-e2ef7c96ed74b35b9dec75a7f222b6ffa9214c10.tar.gz
Fix declaration inheritance.
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 923c56b..9e07899 100644
--- a/factory/base.py
+++ b/factory/base.py
@@ -231,7 +231,7 @@ class FactoryOptions(object):
self.counter_reference = self._get_counter_reference()
- for parent in self.factory.__mro__[1:]:
+ for parent in reversed(self.factory.__mro__[1:]):
if not hasattr(parent, '_meta'):
continue
self.declarations.update(parent._meta.declarations)