Merge remote-tracking branch 'origin/patch-1'

This commit is contained in:
Charanpal 2015-06-02 10:49:15 +01:00
commit cbd488e19f
3 changed files with 3 additions and 2 deletions

View File

@ -222,3 +222,4 @@ that much better:
* Catstyle Lee (https://github.com/Catstyle) * Catstyle Lee (https://github.com/Catstyle)
* Kiryl Yermakou (https://github.com/rma4ok) * Kiryl Yermakou (https://github.com/rma4ok)
* Matthieu Rigal (https://github.com/MRigal) * Matthieu Rigal (https://github.com/MRigal)
* Charanpal Dhanjal (https://github.com/charanpald)

View File

@ -81,7 +81,7 @@ Some simple examples of what MongoEngine code looks like::
>>> len(BlogPost.objects) >>> len(BlogPost.objects)
2 2
>>> len(HtmlPost.objects) >>> len(TextPost.objects)
1 1
>>> len(LinkPost.objects) >>> len(LinkPost.objects)
1 1

View File

@ -114,7 +114,7 @@ arguments can be set on all fields:
:attr:`default` (Default: None) :attr:`default` (Default: None)
A value to use when no value is set for this field. A value to use when no value is set for this field.
The definion of default parameters follow `the general rules on Python The definition of default parameters follow `the general rules on Python
<http://docs.python.org/reference/compound_stmts.html#function-definitions>`__, <http://docs.python.org/reference/compound_stmts.html#function-definitions>`__,
which means that some care should be taken when dealing with default mutable objects which means that some care should be taken when dealing with default mutable objects
(like in :class:`~mongoengine.fields.ListField` or :class:`~mongoengine.fields.DictField`):: (like in :class:`~mongoengine.fields.ListField` or :class:`~mongoengine.fields.DictField`)::