Bastien Gérard
f29b93c762
Merge branch 'master' of https://github.com/MongoEngine/mongoengine into dax_py3
2018-09-04 16:06:45 +02:00
erdenezul
29889d1e35
Merge pull request #1868 from bagerard/yalon-master
...
CLONE - When building a query set from filters that reference the same field several times, do not assume each value is a dict
2018-09-04 21:17:49 +08:00
Bastien Gérard
ab08e67eaf
fix inc/dec operator with decimal
2018-09-04 14:53:55 +02:00
Erdenezul Batmunkh
b65478e7d9
trigger ci
2018-09-04 20:44:44 +08:00
Erdenezul Batmunkh
e83b529f1c
flip value before changing op to inc
2018-09-04 20:38:42 +08:00
Erdenezul Batmunkh
408274152b
reduce cycle complexity using logic map
2018-09-04 20:24:34 +08:00
Bastien Gérard
f96f7f840e
Merge branch 'master' of https://github.com/MongoEngine/mongoengine into dax_py3
2018-09-02 15:36:35 +02:00
Terence D. Honles
c09bfca634
add __repr__ to Q and QCombination
2018-08-15 12:36:13 -07:00
Tal Yalon
080226dd72
Fix issue #1286 and #844.: when building a query set from filters that reference the same field several times, do not assume each value is a dict
2018-06-22 14:16:17 +03:00
erdenezul
3cb6a5cfac
Merge pull request #1575 from zetaben/master
...
Make queryset aggregates obey read_preference
2018-05-24 22:23:49 +08:00
Erdenezul Batmunkh
088fd6334b
bulkwriteerror does not trigger
2018-05-20 18:06:59 +08:00
Erdenezul Batmunkh
94cda90a6e
fix syntax
2018-05-20 17:56:19 +08:00
Erdenezul Batmunkh
78601d90c9
fix typo
2018-05-20 17:54:13 +08:00
Erdenezul Batmunkh
fa4ac95ecc
catch bulkwriteerror
2018-05-20 17:49:49 +08:00
Erdenezul Batmunkh
dd4d4e23ad
call insert method with set_write_concern
2018-05-20 15:51:02 +08:00
Erdenezul Batmunkh
acba86993d
set_write_concern pymongo3
2018-05-20 15:43:19 +08:00
Erdenezul Batmunkh
0fc55451c2
fix style and ids need to be an array
2018-05-20 15:40:26 +08:00
Erdenezul Batmunkh
5c0bd8a810
fix inserted_ids
2018-05-20 15:40:26 +08:00
Erdenezul Batmunkh
1aebc95145
use insert_one, insert_many and remove deprecated one #1491
2018-05-20 15:40:26 +08:00
Erdenezul Batmunkh
1d3f20b666
fix style and ids need to be an array
2018-05-20 14:41:25 +08:00
Erdenezul Batmunkh
eb2e106871
Merge branch 'insert_pymongo3' of github.com:erdenezul/mongoengine into insert_pymongo3
2018-05-20 14:33:35 +08:00
Erdenezul Batmunkh
f9a887c8c6
fix inserted_ids
2018-05-20 14:33:12 +08:00
erdenezul
67ab810cb2
Merge branch 'master' into insert_pymongo3
2018-05-20 14:06:16 +08:00
Erdenezul Batmunkh
3e0d84383e
use insert_one, insert_many and remove deprecated one #1491
2018-05-20 13:41:20 +08:00
Erdenezul Batmunkh
c83c635067
fix import order
2018-05-20 13:04:51 +08:00
Erdenezul Batmunkh
0da8fb379d
Merge remote-tracking branch 'calgary/issue-1491' into update_pymongo3
2018-05-20 12:38:22 +08:00
erdenezul
2b495c648f
Merge pull request #1769 from mindojo-victor/master
...
Fix deprecation warning for StopIteration
2018-05-20 09:36:19 +08:00
Andy Yankovsky
5a6d4387ea
Restore comment from cached value after cursor copy
2018-05-07 23:17:12 +03:00
erdenezul
317e844886
Merge pull request #1765 from kushalmitruka/master
...
fixed : `pull` not working for EmbeddedDocumentListField, only working for ListFields #1534
2018-05-03 09:44:54 +08:00
erdenezul
72c4444a60
Merge branch 'master' into remove-pushall
2018-04-17 16:38:08 +08:00
Victor
806a80cef1
Fixes #1641
...
There's no need to explicitly raise StopIteration as that's what a bare return statement does for a generator function - so yes they're the same.
As of late 2014 return is correct and raise StopIteration for ending a generator is on a depreciation schedule. See PEP 479 for full details.
https://stackoverflow.com/q/14183803/248296
https://www.python.org/dev/peps/pep-0479/
2018-04-09 17:29:09 +03:00
Kushal Mitruka
c6f0d5e478
fixed pull queries for embeddeddocumentlistfields
...
Updated mongoengine.queryset.transform.update method to handle EmbeddedDocuementListField during pull operations in DB using mongoegning ORM
fixed : .udpate(pull__emb_doc__emb_doc_list=doc)
2018-04-01 20:11:22 +05:30
Malthe Jørgensen
727778b730
Docs, queryset.update(): Fix backtick mistake
...
Code should be marked with double backticks
2018-03-30 20:41:39 +02:00
Malthe Jørgensen
e46779f87b
Docs, queryset.update: full_result
-arg not clearly described
...
The documentation for the `full_result`-argument to `queryset.update()`
can be read as returning the update documents/objects, whereas it's
really returning just the full "PyMongo result dictionary".
This commit adds some wording and an example dictionary,
to make it clear what the behavior is.
2018-03-27 14:14:08 +02:00
erdenezul
7cc1d23bc7
Merge pull request #1655 from werat/fix_update_pull_in
...
Fix pull+in update queries
2018-02-21 13:36:04 +08:00
Calgary Michael
4d5c6d11ab
removed deprecated warning for 'update' method
2018-02-02 22:04:30 -06:00
Calgary Michael
9e80da705a
removed usage of 'pushAll' operator
2018-02-02 21:47:04 -06:00
Mandeep Singh
15451ff42b
return instead of raising StopIteration
2017-10-17 00:11:47 +05:30
Erdenezul
9ab856e186
use each modifier only with #1673
2017-10-10 10:34:34 +08:00
Andy Yankovsky
e90f6a2fa3
Fix update via pull__something__in=[]
2017-09-14 20:28:15 +03:00
Srinivas Reddy Thatiparthy
7c0cfb1da2
Add six.moves.range instead of xrange
2017-08-25 00:04:04 +05:30
Ali
2a795e9138
QuerySet limit function now returns all docs in cursor when 0 is passed
2017-08-04 11:31:29 +01:00
Erdenezul Batmunkh
34fca9d6f5
Add clear comment and tests for positional push #1565
2017-07-31 18:32:34 +08:00
Erdenezul Batmunkh
433f10ef93
position support singular value #1565
2017-07-31 05:15:34 +00:00
Erdenezul Batmunkh
3dcc9bc143
use explicit tests and fix unneccessary indent #1565
2017-07-13 22:59:21 +08:00
erdenezul
7311895894
Merge branch 'master' into support_position_in_push
2017-07-13 20:08:57 +08:00
Benoit Larroque
0bc6507df3
Make queryset aggregates obey read_preference
2017-06-27 08:49:06 +02:00
Stefan Wojcik
a8d6e59a7a
minor tweaks to code quality in _fields_to_dbfields
2017-06-18 17:25:39 -07:00
Danil
1d4b1870cf
to_db_fields fix ( #1553 )
2017-06-18 17:04:46 -07:00
Erdenezul Batmunkh
6903eed4e7
support position in 'push' #1565
2017-06-15 06:08:40 +00:00