Bastien Gérard
282b83ac08
Fix default value of ComplexDateTime + fixed descriptor .__get__ for class attribute
2018-09-04 23:48:07 +02:00
Bastien Gérard
193656e71b
detect when EmbeddedDocumentListField receives an EmbeddedDocument instance instead of a list. It is a common mistake and the error wasn't meaningful (was fired from _from_son)
...
(relates to #1464 )
2018-09-04 22:26:19 +02:00
Bastien Gérard
a25d127f36
Remove DictField.basecls related code, it is useless
2018-09-04 20:51:06 +02:00
erdenezul
032ace40d1
Merge pull request #1668 from erdenezul/read_preference_parse
...
parse read_preference from conn_host #1665
2018-09-04 21:58:31 +08: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
Bastien Gérard
8ff82996fb
Fix few things related to query_counter context manager:
...
- Improve doc
- Fix the fact that the context was modifying the initial profiling_level in case it was != 0
- Ignores 'killcursors' to fix flaky test that were impacted by killcursors queries (#1869 )
2018-09-04 12:07:13 +02:00
Bastien Gérard
d59c4044b7
Merge branch 'master' of https://github.com/MongoEngine/mongoengine into yalon-master
2018-09-03 11:23:28 +02:00
erdenezul
3574e21e4f
Merge pull request #1859 from bagerard/fix_EmbeddedDocumentField_init_with_Document
...
Ensures EmbeddedDocumentField does not accepts references to Document
2018-09-03 17:22:08 +08:00
Bastien Gérard
a7852a89cc
Fixes 2 bugs in no_subclasses context mgr (__exit__ swallows exception + repair feature)
2018-09-01 23:30:50 +02:00
Bastien Gérard
5dbee2a270
Ensures EmbeddedDocumentField does not accepts references to Document classes in its constructor
2018-08-30 22:06:36 +02:00
erdenezul
bf2de81873
Merge pull request #1807 from bagerard/lazy_regex_compilation
...
Implemented lazy regex compiling for issue #1806
2018-08-30 21:33:10 +08:00
erdenezul
7e90571404
Merge pull request #1858 from bagerard/fix_index_creation_error_swallowed
...
Fix index creation error that was swallowed by hasattr under python2
2018-08-30 21:28:38 +08:00
Bastien Gérard
7ddbea697e
fix CI that fails due to pypi + override BaseDict.get as it was missing
2018-08-30 14:33:57 +02:00
Bastien Gérard
b4860de34d
Fix index creation error that was swallowed by hasattr under python2 ( #1688 )
2018-08-30 10:39:07 +02:00
Bastien Gérard
86548fc7bf
Document the attribute of .from_json
2018-08-28 22:42:51 +02:00
Terence D. Honles
b3b4d992fe
add Q repr tests
2018-08-27 19:35:47 -07:00
Bastien Gérard
d72daf5f39
Fix BaseList bug with marked_as_changed getting called on error
...
+ Fix BaseDict as well since it suffers from the same problem
2018-08-27 22:34:11 +02:00
erdenezul
cc00a321da
Merge pull request #1848 from bagerard/patch-4
...
Update gridfs.rst - make it clear that user must call Document.save()
2018-08-26 08:28:42 +08:00
Bastien Gérard
a7658c7573
fix BaseList.__iter__ operator ( #1305 ) + minor improvements
2018-08-25 16:33:43 +02:00
Bastien Gérard
48a85ee6e0
update related tests
2018-08-20 00:10:27 +02:00
Bastien Gérard
b71ff6fbb8
fix validator of BinaryField. In fact bson.Binary fails if we give it unicode in input #273
2018-08-18 23:04:46 +02:00
Bastien Gérard
3d45cdc339
Implemented lazy regex compiling in Field classes to improve 'import mongoengine' performance
2018-08-03 23:36:26 +02:00
Gram
19a6e324c4
+tests for date field
2018-07-20 17:37:23 +03: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
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
290b821a3a
add fix for reload(fields) affect changed fields #1371
2018-05-21 16:06:04 +08:00
Erdenezul Batmunkh
9bd328e147
query_counter fix
2018-05-21 10:04:59 +08:00
Erdenezul Batmunkh
6fb5c312c3
fix test error
2018-05-21 09:54:19 +08:00
Erdenezul Batmunkh
3f9ff7254f
fix queryset tests
2018-05-21 09:46:23 +08:00
Erdenezul Batmunkh
f7a3acfaf4
query profiler test fix
2018-05-21 09:34:44 +08:00
Erdenezul Batmunkh
e4451ccaf8
insert_many uses only one insert
2018-05-21 09:24:40 +08:00
Erdenezul Batmunkh
2adb640821
modify bulk_insert test for pymongo3
2018-05-21 09:19:03 +08:00
Erdenezul Batmunkh
fc5d9ae100
pymongo3 does not support continue_on_error
2018-05-20 18:39:22 +08:00
Erdenezul Batmunkh
506168ab83
use write_concern class
2018-05-20 18:25:50 +08:00
Erdenezul Batmunkh
0da8fb379d
Merge remote-tracking branch 'calgary/issue-1491' into update_pymongo3
2018-05-20 12:38:22 +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
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
erdenezul
72c4444a60
Merge branch 'master' into remove-pushall
2018-04-17 16:38:08 +08:00
Thomas Erker
a34fd9ac89
Add testcase for #1751
2018-03-08 11:25:36 +00: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