Fixed a couple of errors in the docs

This commit is contained in:
Harry Marr 2010-10-19 12:28:34 +01:00
parent 69989365c7
commit 3b88a4f728
2 changed files with 4 additions and 6 deletions

View File

@ -41,6 +41,8 @@ Fields
.. autoclass:: mongoengine.URLField .. autoclass:: mongoengine.URLField
.. autoclass:: mongoengine.EmailField
.. autoclass:: mongoengine.IntField .. autoclass:: mongoengine.IntField
.. autoclass:: mongoengine.FloatField .. autoclass:: mongoengine.FloatField
@ -57,6 +59,8 @@ Fields
.. autoclass:: mongoengine.ListField .. autoclass:: mongoengine.ListField
.. autoclass:: mongoengine.SortedListField
.. autoclass:: mongoengine.BinaryField .. autoclass:: mongoengine.BinaryField
.. autoclass:: mongoengine.ObjectIdField .. autoclass:: mongoengine.ObjectIdField

View File

@ -325,12 +325,6 @@ calling it with keyword arguments::
# Get top posts # Get top posts
Post.objects((Q(featured=True) & Q(hits__gte=1000)) | Q(hits__gte=5000)) Post.objects((Q(featured=True) & Q(hits__gte=1000)) | Q(hits__gte=5000))
.. warning::
Only use these advanced queries if absolutely necessary as they will execute
significantly slower than regular queries. This is because they are not
natively supported by MongoDB -- they are compiled to Javascript and sent
to the server for execution.
Server-side javascript execution Server-side javascript execution
================================ ================================
Javascript functions may be written and sent to the server for execution. The Javascript functions may be written and sent to the server for execution. The