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
d245ea3eaa
Merge pull request #1792 from erdenezul/update_pymongo3
...
use update_many, update_one #1491
2018-05-20 13:34:03 +08:00
Erdenezul Batmunkh
843fc03bf4
add changelog for update_one,update_many
2018-05-20 13:16:25 +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
fd02d77c59
drop pymongo 2.x support in update
2018-05-20 12:43: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
e50d66b303
skip mongodb 2.4
2018-05-20 11:26:30 +08:00
Erdenezul Batmunkh
08b6433843
fix compare_indexes for text indexes #1751
2018-05-20 11:03:13 +08:00
Erdenezul Batmunkh
8cd536aab5
Merge branch 'issue-1751' of github.com:th-erker/mongoengine into missing_text_index_ensure_indexes
2018-05-20 10:06:08 +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
06048b6d71
Merge pull request #1782 from nosahama/patch-1
...
Updated text-indexes.rst
2018-05-19 09:25:54 +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
erdenezul
a45942a966
Merge pull request #1789 from chidaobanjiu/patch-1
...
Fix typo
2018-05-19 09:20:47 +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
Kushal Mitruka
b1f62a2735
added import in tests/queryset/transform.py for SON object
2018-05-01 21:08:43 +05:30
Kushal Mitruka
65e4fea4ef
added test cases for update pull queries
2018-05-01 20:32:38 +05:30
Emmanuel Nosa Evbuomwan
faca8512c5
Updated text-indexes.rst
...
The search statement under the `Ordering by text score` section uses `search` on the QuerySet object instead of `search_text` and thus raised an `AttributeError`
AttributeError: 'QuerySet' object has no attribute 'search'
2018-04-29 17:32:03 +01:00
erdenezul
2121387aa2
Merge pull request #1737 from CalgaryMichael/remove-pushall
...
Removing the usage of the '$pushAll' operator
v0.15.1
2018-04-17 17:50:52 +08:00
erdenezul
72c4444a60
Merge branch 'master' into remove-pushall
2018-04-17 16:38:08 +08:00
erdenezul
2d8d2e7e6f
Merge pull request #1771 from bchrobot/add-lazy-reference-documentation
...
Add documentation for LazyReference and GenericLazyReference fields.
2018-04-12 23:12:12 +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
erdenezul
bf30aba005
Merge pull request #1763 from malthejorgensen/patch-2
...
Docs, queryset.update(): Fix backtick mistake
2018-03-31 18:02:00 +08:00
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
erdenezul
b081ffce50
Merge pull request #1762 from malthejorgensen/patch-1
...
queryset.update: `full_result`-argument not clearly described
2018-03-30 08:31:35 +08: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
erdenezul
4042f88bd8
Merge pull request #1753 from JohnAD/master
...
Edit EmbeddedDocumentListField update() doc
2018-03-11 19:35:13 +08:00
John Dupuy
a0947d0c54
Edit EmbeddedDocumentListField update() doc
2018-03-10 23:24:04 -06:00
Thomas Erker
a34fd9ac89
Add testcase for #1751
2018-03-08 11:25:36 +00:00
estein-de
aa68322641
MongoDB wants dates stored in UTC, but the functions used in this documentation to generate datetime objects would use server's local timezone - fix it! ( #1662 )
2018-02-27 09:43:09 -05: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
Andy Yankovsky
0bd2103a8c
Add test for document update
2018-02-20 00:02:12 +03:00
Sangmin In
7d8916b6e9
fix case inconsistent casing of "MongoDB" ( #1744 )
2018-02-10 10:59:47 -05: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