Update mongoengine.rst
This commit is contained in:
parent
165af0a090
commit
75a8327cfd
1 changed files with 1 additions and 1 deletions
|
|
@ -80,7 +80,7 @@ Queries
|
||||||
Use the class ``objects`` attribute to make queries. A keyword argument
|
Use the class ``objects`` attribute to make queries. A keyword argument
|
||||||
looks for an equal value on the field. ::
|
looks for an equal value on the field. ::
|
||||||
|
|
||||||
bttf = Movies.objects(title="Back To The Future").get_or_404()
|
bttf = Movie.objects(title="Back To The Future").get_or_404()
|
||||||
|
|
||||||
Query operators may be used by concatenating them with the field name
|
Query operators may be used by concatenating them with the field name
|
||||||
using a double-underscore. ``objects``, and queries returned by
|
using a double-underscore. ``objects``, and queries returned by
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue