Fixed documentation

This commit is contained in:
Ross Lawley
2012-07-23 15:32:02 +01:00
parent 3070e0bf5d
commit 598ffd3e5c
4 changed files with 38 additions and 7 deletions

View File

@@ -169,7 +169,7 @@ class IntField(BaseField):
def prepare_query_value(self, op, value):
if value is None:
return value
return int(value)
@@ -199,7 +199,7 @@ class FloatField(BaseField):
def prepare_query_value(self, op, value):
if value is None:
return value
return float(value)
@@ -530,6 +530,8 @@ class ListField(ComplexBaseField):
"""A list field that wraps a standard field, allowing multiple instances
of the field to be used as a list in the database.
If using with ReferenceFields see: :ref:`one-to-many-with-listfields`
.. note::
Required means it cannot be empty - as the default for ListFields is []
"""

View File

@@ -806,9 +806,9 @@ class QuerySet(object):
keyword argument called :attr:`defaults`.
.. note:: This requires two separate operations and therefore a
race condition exists. Because there are no transactions in mongoDB
other approaches should be investigated, to ensure you don't
accidently duplicate data when using this method.
race condition exists. Because there are no transactions in mongoDB
other approaches should be investigated, to ensure you don't
accidently duplicate data when using this method.
:param write_options: optional extra keyword arguments used if we
have to create a new document.
@@ -816,8 +816,8 @@ class QuerySet(object):
:param auto_save: if the object is to be saved automatically if not found.
.. versionchanged:: 0.6 - added `auto_save`
.. versionadded:: 0.3
.. versionupdated:: 0.6 - added `auto_save`
"""
defaults = query.get('defaults', {})
if 'defaults' in query: