Bastien Gérard
9ae8fe7c2d
Improve perf of Doc.save by preventing a full to_mongo() call just to get the created
variable
2019-06-01 11:13:28 +02:00
Bastien Gérard
24ba35d76f
Merge pull request #2062 from george-pearson/deprecation_warning_pymongo
...
Use update_one instead of deprecated update #1899
2019-05-26 21:20:56 +02:00
George Pearson
64b63e9d52
Use update_one instead of deprecated update #1899
2019-05-26 17:29:23 +01:00
Bastien Gérard
cf38ef70cb
Remove more code related to supporting pymongo2
2019-05-15 22:23:35 +02:00
Bastien Gérard
ac64ade10f
remove dead code (related to pymongo2) + minor cleaning
2019-05-15 21:54:47 +02:00
Bastien Gérard
9cdc3ebee6
Fix default write concern on save call that was overwriting connection wc
2019-05-05 23:37:12 +02:00
Bastien Gérard
b1e28d02f7
Improve connect/disconnect
...
- document disconnect + sample of usage
- add more test cases to prevent github issues regressions
2019-04-24 22:44:07 +02:00
Bastien Gérard
d1467c2f73
Fix connect/disconnect functions
...
- expose disconnect
- disconnect cleans _connection_settings
- disconnect cleans cached collection in Document._collection
- re-connecting with the same alias raise an error (must call disconnect in between)
2019-04-24 22:41:56 +02:00
Bastien Gérard
68497542b3
Bump the required version of pymongo to >=3.5
2019-03-17 22:04:19 +01:00
Bastien Gérard
35b7efe3f4
refactored deprecated pymongo methods in tests
...
- remove/count/add_user/insert
- added pymongo_support
2019-03-02 00:28:38 +01:00
Bastien Gérard
c8df3fd2a7
fix conflict
2019-02-21 21:27:08 +01:00
Bastien Gérard
6d353dae1e
refactored iteritems/itervalues to improve 2/3 compat #2003
2019-02-18 22:13:05 +01:00
Bastien Gérard
57a38282a9
Add DeprecationWarning for EmbeddedDocument.save & .reload - those will be removed soon
2019-02-18 22:03:03 +01:00
Bastien Gérard
3484ceabb8
Fix documentation regarding limitation with fields with underscore in their name in DynamicDocument
2019-02-17 09:05:27 +01:00
Bastien Gérard
fcbabbe357
Fix but with save(write_concern=None) - introduced in 0.16.1
2018-11-21 00:03:08 +01:00
erdenezul
78a9420f26
Merge pull request #1944 from erdenezul/deprecation_warning_pymongo37
...
Use insert_one instead of deprecated one #1899
2018-11-13 19:40:22 +08:00
Erdenezul Batmunkh
b47c5b5bfc
Adhere imports into existing one #1899
2018-11-12 09:53:39 +08:00
Erdenezul Batmunkh
611094e92e
Refactor write_concern #1945
2018-11-09 09:20:55 +08:00
Erdenezul Batmunkh
47577f2f47
Update existing document #1899
2018-11-09 01:44:30 +08:00
Erdenezul Batmunkh
34e3e45843
Use insert_one instead of deprecated one #1899
2018-11-08 23:47:12 +08:00
erdenezul
45c86be402
Merge pull request #1916 from liuq/master
...
Bug fix: pre_save_post_validation could, in principle, modify the document
2018-10-10 17:12:39 +08:00
Luca Di Gaspero
68c7764c63
Small fix to ensure to use the right document after pre_save_post_validation hook, which might modify the document itself (e.g., for adding a etag).
2018-10-08 17:06:08 +02:00
Bastien Gérard
adfb039ba6
Improve overall code quality (based on pylint findings)
2018-10-07 23:05:18 +02:00
Bastien Gérard
4314fa883f
improve 2-3 codebase compatibility
2018-09-09 23:32:10 +02:00
Bastien Gérard
576f23d5fb
Fix .delete doc of **write_concern as suggested by #1779
2018-08-28 22:58:13 +02:00
Bastien Gérard
1bcdcce93a
remove dead code
2018-08-18 00:03:17 +02:00
Tony Narlock
d0741946c7
Fix a typo ( #1813 )
...
an -> a
2018-06-28 17:19:48 +02: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
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
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
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
Ivan Pogrebkov
7efa67e7e6
reverse to 'style fix'
2018-02-05 12:35:06 +03:00
Ivan Pogrebkov
de360c61dd
removed useless lines
2018-02-05 04:26:25 +03:00
Ivan Pogrebkov
7e8c62104a
null=True now usefull
2018-01-26 11:15:12 +03:00
Erdenezul
1eae97731f
Fix Document.modify fail on sharded collection #1569
2017-08-30 12:04:04 +08:00
lanf0n
24d15d4274
fix typo in the save() method's docstring ( #1551 )
2017-05-11 10:06:36 -04:00
Stefan Wojcik
2cf23e33e3
Document._get_update_doc helper method
2017-05-07 19:26:10 -04:00
Stefan Wójcik
de18e256ce
clean up the Document._get_collection code ( #1540 )
2017-04-30 14:35:33 -04:00
Stefan Wójcik
1a3c70ce1b
make EmbeddedDocument not hashable by default ( #1528 )
2017-04-30 13:30:21 -04:00
Stefan Wójcik
ebd34427c7
Cleaner Document.save ( #1458 )
2016-12-30 05:43:56 -05:00
Stefan Wójcik
91dad4060f
raise an error when trying to save an abstract document ( #1449 )
2016-12-28 00:51:47 -05:00
Stefan Wójcik
835d3c3d18
Improve the health of this package ( #1428 )
2016-12-11 18:49:21 -05:00
Ollie Ford
d8d98b6143
Support Falsey primary_key
s ( #1354 )
2016-12-03 16:10:05 -05:00
Stefan Wójcik
3c455cf1c1
Improve health of this package ( #1409 )
...
* added flake8 and flake8-import-order to travis for py27
* fixed a test that fails from time to time depending on an order of a dict
* flake8 tweaks for the entire codebase excluding tests
2016-11-28 19:00:34 -05:00
Konstantin Gukov
ddedc1ee92
Fixed too broad exception clauses in the project
2016-02-23 23:50:45 +05:00
Emmanuel Leblond
adce9e6220
Raise OperationError in drop_collection if no collection is set
2016-02-19 01:58:15 +01:00