summaryrefslogtreecommitdiff
path: root/factory
diff options
context:
space:
mode:
authorRaphaël Barrois <raphael.barrois@polytechnique.org>2013-03-24 20:02:08 +0100
committerRaphaël Barrois <raphael.barrois@polytechnique.org>2013-03-24 20:02:08 +0100
commit4d6847eb93aa269130ad803fb50be99c4a7508d0 (patch)
tree9ae1cbfa28ca7bd6430b82f5fbca83316ea084ee /factory
parent6c4f5846c8e21d6e48347b7e661edb72ffabb9f1 (diff)
downloadfactory-boy-4d6847eb93aa269130ad803fb50be99c4a7508d0.tar
factory-boy-4d6847eb93aa269130ad803fb50be99c4a7508d0.tar.gz
Default Sequence.type to int (Closes #50).
Diffstat (limited to 'factory')
-rw-r--r--factory/declarations.py2
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