aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorRaphaël Barrois <raphael.barrois@polytechnique.org>2013-03-11 22:19:51 +0100
committerRaphaël Barrois <raphael.barrois@polytechnique.org>2013-03-11 22:22:42 +0100
commit4e149f904cc8e0e61dd8bcc190680414fdf61767 (patch)
tree5e272d90b2c21ce36e0bc25df2b7c5c24b85286d /docs
parentf4100b373418a58dba7ff4f29cfb44df4eca3d15 (diff)
downloadfactory-boy-4e149f904cc8e0e61dd8bcc190680414fdf61767.tar
factory-boy-4e149f904cc8e0e61dd8bcc190680414fdf61767.tar.gz
doc: Fix rst.
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
Diffstat (limited to 'docs')
-rw-r--r--docs/reference.rst20
1 files changed, 11 insertions, 9 deletions
diff --git a/docs/reference.rst b/docs/reference.rst
index 0bb0d74..e1f763c 100644
--- a/docs/reference.rst
+++ b/docs/reference.rst
@@ -1072,7 +1072,7 @@ PostGenerationMethodCall
The default set of unnamed arguments to pass to the method given in
:attr:`method_name`
- .. attrinbute:: kwargs
+ .. attribute:: kwargs
The default set of keyword arguments to pass to the method given in
:attr:`method_name`
@@ -1120,21 +1120,23 @@ factory during instantiation.
>>> other_u.check_password('different')
True
-.. note:: For Django models, unless the object method called by
- :class:`PostGenerationMethodCall` saves the object back to the
- database, we will have to explicitly remember to save the object back
- if we performed a ``create()``.
+.. note::
- .. code-block:: pycon
+ For Django models, unless the object method called by
+ :class:`PostGenerationMethodCall` saves the object back to the
+ database, we will have to explicitly remember to save the object back
+ if we performed a ``create()``.
+
+ .. code-block:: pycon
>>> u = UserFactory.create() # u.password has not been saved back to the database
>>> u.save() # we must remember to do it ourselves
- We can avoid this by subclassing from :class:`DjangoModelFactory`,
- instead, e.g.,
+ We can avoid this by subclassing from :class:`DjangoModelFactory`,
+ instead, e.g.,
- .. code-block:: python
+ .. code-block:: python
class UserFactory(factory.DjangoModelFactory):
FACTORY_FOR = User