3057 Commits

Author SHA1 Message Date
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
KCarretto
2d76aebb8e
Fixed formatting issue 2018-02-21 05:02:35 -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
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
Ivan Pogrebkov
0d854ce906
style fix 2018-02-05 03:24:53 +03:00
Calgary Michael
38fdf26405 added tests for push and push_all 2018-02-04 10:23:50 -06:00
Calgary Michael
6835c15d9b fixing bug in previous commit 2018-02-02 22:41:07 -06:00
Calgary Michael
fa38bfd4e8 made set_write_concern python2.7 compatible 2018-02-02 22:30:06 -06: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
erdenezul
9b04391f82
Merge pull request #1736 from vainu-arto/register-connection-match-connection
Add db parameter to register_connection #606
2018-02-02 16:46:45 +08:00
Arto Jantunen
8f6c0796e3 Add db parameter to register_connection
This is done to make it compatible with the connect function.
2018-02-02 10:26:36 +02:00
erdenezul
326fcf4398
Merge pull request #1735 from esmail/patch-1
Update `post_save` signal documentation to reflect #594
2018-02-02 15:06:17 +08:00
Esmail
fdda27abd1
Update post_save signal documentation to reflect #594 2018-02-01 12:58:10 -05:00
Ivan Pogrebkov
7e8c62104a
null=True now usefull 2018-01-26 11:15:12 +03:00
Ivan Pogrebkov
fb213f6e74
Update document.py 2018-01-26 11:12:02 +03:00
Ivan Pogrebkov
22e75c1691
Insert null values fix
https://stackoverflow.com/questions/42601950/how-to-store-a-null-value-in-mongodb-via-mongoengine
2018-01-26 10:55:44 +03:00
Chuan-Heng Hsiao
919f221be9 defensive programming for v as an instance of DBRef when accessing v.collection in dereference 2018-01-11 07:58:24 -05:00
erdenezul
da7d64667e
Merge pull request #1571 from erdenezul/reverse_delete_rule_with_pull
add test case for reverse_delete_rule with pull #1519
2017-12-23 11:32:09 +08:00
erdenezul
d19c6a1573
Merge pull request #1714 from erdenezul/1712-cached-reference-push-fix
update fields argument when given #1172
2017-12-23 00:18:19 +08:00
Erdenezul Batmunkh
5cd23039a0 Merge branch '1712-cached-reference-push-fix' of github.com:erdenezul/mongoengine into 1712-cached-reference-push-fix 2017-12-23 00:02:43 +08:00
Erdenezul
19b18d3d0a add changelog #1712 2017-12-23 00:02:03 +08:00
Erdenezul
101947da8b update fields argument when given #1172 2017-12-23 00:00:57 +08:00
Emmanuel Leblond
d3c3c23630
Merge pull request #1717 from touilleMan/fix-pymongo-mongodb2.4
Fix travis tests with mongodb 2.4 & pymongo 3
2017-12-22 16:19:14 +01:00
Erdenezul Batmunkh
abc14316ea Merge branch '1712-cached-reference-push-fix' of github.com:erdenezul/mongoengine into 1712-cached-reference-push-fix 2017-12-22 21:09:07 +08:00
Erdenezul
b66621f9c6 add changelog #1712 2017-12-22 21:08:35 +08:00
Erdenezul
aa5510531d update fields argument when given #1172 2017-12-22 21:07:35 +08:00
Emmanuel Leblond
12b846586c
Fix travis tests with mongodb 2.4 & pymongo 3 2017-12-22 13:23:03 +01:00
erdenezul
b705f5b743
Merge pull request #1716 from MongoEngine/revert-1645-inc_cov
Revert "add tests to increase code coverage"
2017-12-22 20:22:37 +08:00
erdenezul
18a5fba42b
Revert "add tests to increase code coverage" 2017-12-22 20:19:21 +08:00