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
8739ab9c66
fix syntax #1338
2018-05-23 15:59:18 +08:00
Erdenezul Batmunkh
446c101018
dont call ensure_indexes on slave #1338
2018-05-23 15:53:30 +08:00
erdenezul
7fb1c9dd35
Merge branch 'master' into master
2018-05-21 16:22:07 +08:00
erdenezul
0fffaccdf4
Merge pull request #1640 from erdenezul/fix_changed_field_reload
...
add fix for reload(fields) affect changed fields #1371
2018-05-21 16:16:37 +08:00
Erdenezul
d424583cbf
fix flake8 error #1371
2018-05-21 16:06:04 +08:00
Erdenezul
290b821a3a
add fix for reload(fields) affect changed fields #1371
2018-05-21 16:06:04 +08:00
erdenezul
a0dfa8d421
Merge pull request #1723 from chhsiao1981/dereference-add-check-dbref-type
...
defensive programming for v as an instance of DBRef in dereference.
2018-05-21 13:00:46 +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
f605eb14e8
fix style
2018-05-20 12:54:24 +08:00
Erdenezul Batmunkh
0da8fb379d
Merge remote-tracking branch 'calgary/issue-1491' into update_pymongo3
2018-05-20 12:38:22 +08:00
Erdenezul Batmunkh
257a43298b
use MongoClient.is_mongos in ensure indexes #1759
2018-05-20 12:31:27 +08:00
erdenezul
a2d3bcd571
Merge pull request #1562 from erdenezul/support_multiple_operator
...
support multiple operator #1510
2018-05-20 12:20:04 +08:00
erdenezul
d4142c2cdd
Merge pull request #1790 from erdenezul/compare_index_correct_behavior_text
...
Compare_indexes correct behavior for text index
2018-05-20 11:46:35 +08:00
Erdenezul Batmunkh
08b6433843
fix compare_indexes for text indexes #1751
2018-05-20 11:03:13 +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
erdenezul
bb22287336
Merge pull request #1784 from werat/fix_override_comment
...
Restore comment from cached value after queryset copy
2018-05-19 09:23:58 +08:00
Benjamin Jiang
85d621846d
Fix typo
2018-05-16 11:37:32 +08:00
erdenezul
534acf8df2
Merge pull request #1731 from van4oza/patch-1
...
Insert null values fix
2018-05-15 14:18:24 +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
Benjamin Chrobot
49bff5d544
Add documentation for LazyReference and GenericLazyReference fields.
2018-04-12 10:47:52 -04: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
Stefan Wojcik
dabe8c1bb7
highlight places where ValidationError is raised outside of validate() method
2018-03-14 14:26:46 -04:00
John Dupuy
a0947d0c54
Edit EmbeddedDocumentListField update() doc
2018-03-10 23:24:04 -06: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
erdenezul
ffdfe99d37
Merge pull request #1636 from erdenezul/fix_shard_key_modify
...
Fix Document.modify fail on sharded collection #1569
2018-02-06 07:25:42 +08:00
Ivan Pogrebkov
7efa67e7e6
reverse to 'style fix'
2018-02-05 12:35:06 +03:00
Ivan Pogrebkov
d69808c204
oh, ok...
2018-02-05 12:33:58 +03:00
Ivan Pogrebkov
de360c61dd
removed useless lines
2018-02-05 04:26:25 +03:00
Ivan Pogrebkov
6b04ddfad1
><
2018-02-05 04:24:03 +03:00