diff options
author | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2013-03-24 20:02:08 +0100 |
---|---|---|
committer | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2013-03-24 20:02:08 +0100 |
commit | 4d6847eb93aa269130ad803fb50be99c4a7508d0 (patch) | |
tree | 9ae1cbfa28ca7bd6430b82f5fbca83316ea084ee /factory/declarations.py | |
parent | 6c4f5846c8e21d6e48347b7e661edb72ffabb9f1 (diff) | |
download | factory-boy-4d6847eb93aa269130ad803fb50be99c4a7508d0.tar factory-boy-4d6847eb93aa269130ad803fb50be99c4a7508d0.tar.gz |
Default Sequence.type to int (Closes #50).
Diffstat (limited to 'factory/declarations.py')
-rw-r--r-- | factory/declarations.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/factory/declarations.py b/factory/declarations.py index 2b1fc05..a284930 100644 --- a/factory/declarations.py +++ b/factory/declarations.py @@ -168,7 +168,7 @@ class Sequence(OrderedDeclaration): type (function): A function converting an integer into the expected kind of counter for the 'function' attribute. """ - def __init__(self, function, type=str): + def __init__(self, function, type=int): super(Sequence, self).__init__() self.function = function self.type = type |