aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorBranko Majic <branko@majic.rs>2013-08-02 22:43:22 +0200
committerRaphaƫl Barrois <raphael.barrois@polytechnique.org>2013-08-05 19:02:50 +0200
commit1c473f9b3e3ba216c37df7ce7393d8c3742fa054 (patch)
treef4e14777264e3ac5e242b89d080416bc4080a1f2 /docs
parent740eeb0c0330e0292b215a3128788f553dd80f17 (diff)
downloadfactory-boy-1c473f9b3e3ba216c37df7ce7393d8c3742fa054.tar
factory-boy-1c473f9b3e3ba216c37df7ce7393d8c3742fa054.tar.gz
Fix factory.sequence documentation (Closes #77).
The documentation erroneously included an extra 'self' parameter.
Diffstat (limited to 'docs')
-rw-r--r--docs/introduction.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/introduction.rst b/docs/introduction.rst
index 356e11f..4dc1168 100644
--- a/docs/introduction.rst
+++ b/docs/introduction.rst
@@ -99,7 +99,7 @@ This is achieved with the :class:`~factory.Sequence` declaration:
>>> UserFactory()
<User: user2>
-.. note:: For more complex situations, you may also use the :meth:`~factory.@sequence` decorator:
+.. note:: For more complex situations, you may also use the :meth:`~factory.@sequence` decorator (note that ``self`` is not added as first parameter):
.. code-block:: python
@@ -107,7 +107,7 @@ This is achieved with the :class:`~factory.Sequence` declaration:
FACTORY_FOR = models.User
@factory.sequence
- def username(self, n):
+ def username(n):
return 'user%d' % n