rmendocna
25e0f12976
fix delete cascade for models without a literal id field: replace with pk ( #1247 )
2016-12-05 22:54:21 -05:00
Stefan Wójcik
d25058a46d
Implement BaseQuerySet.batch_size ( #1426 )
2016-12-05 22:13:22 -05:00
Stefan Wójcik
4d0c092d9f
Fix iteration within iteration ( #1427 )
2016-12-05 09:38:24 -05:00
Stefan Wójcik
0007535a46
Add support for cursor.comment ( #1420 )
2016-12-04 00:33:42 -05:00
Stefan Wojcik
999cdfd997
Fix BaseQuerySet#sum and BaseQuerySet#average for fields that specify a db_field
2016-12-02 11:32:38 -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
Stanivlav Kaledin
ac90d6ae5c
Don't force _cursor
2016-11-14 20:06:34 +03:00
Stanivlav Kaledin
2141f2c4c5
Fixed issue https://github.com/MongoEngine/mongoengine/issues/442
...
Added support for pickling BaseQueryset instances
Added BaseQueryset.__getstate__, BaseQuerySet.__setstate__ methods
2016-11-14 19:57:48 +03:00
Stefan Wojcik
3fa9e70383
prefer tuples over lists for immutable structures
2016-07-11 10:42:27 -07:00
Stefan Wojcik
16fea6f009
replace QuerySet.sum/average implementations with aggregate_sum/average + tweaks
2016-07-10 13:21:12 -07:00
Jérôme Lafréchoux
e394c8f0f2
Merge pull request #1328 from anentropic/upsert-docs-fix
...
better description for upsert arg on some methods
2016-06-29 15:56:45 +02:00
Anentropic
21974f7288
better description for upsert arg on some methods
2016-06-29 14:24:33 +01:00
xiaost
1f223aa7e6
Fix no_cursor_timeout with pymongo3
2016-05-26 00:29:41 +08:00
Konstantin Gukov
ddedc1ee92
Fixed too broad exception clauses in the project
2016-02-23 23:50:45 +05:00
Emmanuel Leblond
b320064418
Add signal_kwargs arg for save/delete/bulk insert
2016-02-09 14:28:55 +01:00
Emmanuel Leblond
a643933d16
Fix cascade delete mixing among collections
2016-01-30 11:59:55 +01:00
Omer Katz
2659ec5887
Merge pull request #1196 from nickptrvc/master
...
Fix pre_bulk_insert signal
2016-01-30 12:25:29 +02:00
Emmanuel Leblond
decd70eb23
Merge pull request #1220 from bagerard/patch-1
...
fixed minor typo in docstring
(PR has been issued by mistake to dev branch insteed of master)
2016-01-26 00:28:04 +01:00
Bastien
feb5eed8a5
fixed minor typo in docstring
2016-01-21 16:59:37 +01:00
Nick Pjetrovic
acc7448dc5
Fix pre_bulk_insert signal
2015-12-24 18:30:46 -05:00
srossiter
164e2b2678
Docstring change and rename variable to avoid clash with kwargs
2015-11-24 12:53:09 +00:00
srossiter
b7b28390df
Added upsert_one method on BaseQuerySet and modified test_upsert_one
2015-11-24 12:46:38 +00:00
Stefan Wojcik
54975de0f3
fix read_preference for PyMongo 3+
2015-11-23 10:46:52 -08:00
Stefan Wojcik
a7aead5138
re-create the cursor object whenever we apply read_preference
2015-11-23 10:46:52 -08:00
abonhomme
44f92d4169
docstring correction
...
Corrected the docstring for `mongoengine.queryset.base.update_one()`
2015-10-23 11:07:26 -04:00
David Bordeynik
5334ea393e
fix-#842: Fix ignored chained options
2015-07-02 23:08:09 +03:00
emilecaron
56a2e07dc2
always store docs in cascade_refs
2015-06-26 10:45:07 +00:00
emilecaron
9b7fe9ac31
restore broken behavior
2015-06-26 09:31:07 +00:00
emilecaron
b691a56d51
late set instanciation
2015-06-26 08:52:30 +00:00
emilecaron
646baddce4
fix cascade delete cycle issuue
2015-06-25 18:27:22 +00:00
emilecaron
1e3d2df9e7
fix illogicality
2015-06-25 15:40:12 +00:00
Matthieu Rigal
0aeb1ca408
Various fixes again
2015-06-24 00:50:36 +02:00
mrigal
778c7dc5f2
general pep8 and more clean-up
2015-06-23 23:15:44 +02:00
Matthieu Rigal
bcc4d4e8c6
Added test and fix for delete with write_concern w:0
2015-06-21 03:40:45 +02:00
Stefan Wojcik
b7ef82cb67
style tweaks + changelog entry
2015-06-18 11:02:11 -07:00
Stefan Wojcik
1233780265
make aggregate_sum/average compatible with pymongo 3.x
2015-06-18 11:01:37 -07:00
Stefan Wojcik
dd095279c8
aggregate_sum/average + unit tests
2015-06-18 11:01:37 -07:00
Matthieu Rigal
7714cca599
Removed get_or_create() method, deprecated since 0.8
2015-06-12 20:51:59 +02:00
Matthieu Rigal
794101691c
removed wire_concern usage and cosmetics
2015-05-07 19:34:31 +02:00
mrigal
3ab5ba6149
added explicit warnings when calling methods having no effect anymore with PyMongo3+
2015-05-07 12:47:30 +02:00
mrigal
c25619fd63
improved deprecation documentation and added warning when using snapshot with PyMongo3
2015-05-07 12:47:30 +02:00
mrigal
76adb13a64
Minor text and comments enhancements
2015-05-07 12:47:30 +02:00
mrigal
33b1eed361
corrected logical test for not Pymongo3 versions
2015-05-07 12:47:30 +02:00
mrigal
6ad9a56bd9
corrected bad import preventing to run on PyMongo 2.X versions
2015-05-07 12:47:30 +02:00
mrigal
0a65006bb4
replaced find_and_modify by PyMongo3 equivalents
2015-05-07 12:47:30 +02:00
mrigal
48316ba60d
implemented global IS_PYMONGO_3
2015-05-07 12:47:29 +02:00
mrigal
ccbd128fa2
first adaptations after comments and find-outs
2015-05-07 12:47:29 +02:00
mrigal
3b8f31c888
fix problems with cursor arguments
2015-05-07 12:47:29 +02:00
Omer Katz
ff659a0be3
Merge pull request #815 from MRigal/master
...
fixed bug for queryset.distinct to work also on embedded documents, not ...
2014-12-04 14:21:04 +02:00
Antoine Français
7bb65fca4e
Fix crash when applying deletion rules
...
When deleting a document references by other, if that refence is
defined on an abstract document, the operation fails, because it tries
to apply deletion on the abstract class which doesn't have a QuerySet.
Fix is simply to ignore document classes which are defined abstract when
applying rules on all classes referencing the document.
2014-12-04 11:34:23 +01:00