Neeraj
9f2a9d9cda
Fix limit usage in aggregate
...
As per https://stackoverflow.com/a/24161461
2019-04-03 19:09:45 +05:30
Bastien Gérard
b640c766db
Fix queryset batch_size that wasn't copied to cloned queryset
2019-03-04 23:01:12 +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
cab659dce6
Fix documentation of Queryset.update regarding full_result #1995
2019-02-16 21:54:05 +01:00
erdenezul
dc7922c38b
Merge pull request #1976 from 3ddi/eddie/revert_hidden_fields
...
Bring back _cls and _id fields just as they return in pymongo
2019-02-13 14:25:12 +08:00
Bastien Gérard
69a99c70c6
minor update to .all() doc to make it clear that it does not return a list but a queryset
2018-12-24 23:51:30 +01:00
Eddie Linder
363aefe399
Get rid of _get_as_pymongo wrapper altogether as we return raw output
2018-12-20 01:09:28 +02:00
Eddie Linder
7fd4f792ba
Don't hide _cls field when using as_pymongo
2018-12-20 01:02:42 +02:00
Eddie Linder
b04dc90cdf
Bring back _cls and _id fields just as they return in pymongo
2018-12-20 00:39:32 +02:00
Tom Floyer
3194a37fcb
Reset cursor object after .count()
...
This change fixes incorrect result of .only() method of QuerySet
instance after using .count().
2018-12-08 22:16:57 +03:00
Bastien Gérard
983474b2bd
Ignore 2 more flake8 warnings (introduced in latest flake8 3.6.0 release)
2018-10-30 23:40:46 +01:00
Bastien Gérard
4939a7dd7c
update input document ids during bulk insert #1919
2018-10-16 22:21:53 +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
Erdenezul Batmunkh
aa49283fa9
fix trailing whitespace
2018-09-07 15:39:55 +08:00
erdenezul
e79ea7a2cf
Merge branch 'master' into limit_behaviour
2018-09-07 15:34:23 +08: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
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
0da8fb379d
Merge remote-tracking branch 'calgary/issue-1491' into update_pymongo3
2018-05-20 12:38:22 +08:00
Andy Yankovsky
5a6d4387ea
Restore comment from cached value after cursor copy
2018-05-07 23:17:12 +03: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
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
Calgary Michael
4d5c6d11ab
removed deprecated warning for 'update' method
2018-02-02 22:04:30 -06:00
Ali
2a795e9138
QuerySet limit function now returns all docs in cursor when 0 is passed
2017-08-04 11:31:29 +01:00
Benoit Larroque
0bc6507df3
Make queryset aggregates obey read_preference
2017-06-27 08:49:06 +02:00
Stefan Wojcik
a8d6e59a7a
minor tweaks to code quality in _fields_to_dbfields
2017-06-18 17:25:39 -07:00
Danil
1d4b1870cf
to_db_fields fix ( #1553 )
2017-06-18 17:04:46 -07:00
Stefan Wójcik
3b88712402
Cleaner as_pymongo ( #1549 )
2017-05-08 00:02:42 -04:00
Stefan Wójcik
49035543b9
cleanup BaseQuerySet.__getitem__ ( #1502 )
2017-03-05 21:17:53 -05:00
Ephraim Berkovitch
398964945a
Document.objects.create should raise NotUniqueError upon saving duplicate primary key ( #1485 )
2017-02-27 09:42:44 -05:00
Stefan Wójcik
3ca2e953fb
Fix limit/skip/hint/batch_size chaining ( #1476 )
2017-02-09 12:02:46 -08:00
Stefan Wójcik
c6cc013617
fix BaseQuerySet.fields when mixing exclusion/inclusion with complex values like $slice ( #1452 )
2016-12-28 11:40:57 -05:00
Stefan Wojcik
2770cec187
better docstring for BaseQuerySet.fields
2016-12-27 10:20:13 -05:00
Stefan Wójcik
835d3c3d18
Improve the health of this package ( #1428 )
2016-12-11 18:49:21 -05:00