Stefan Wojcik
0a66a4b8a9
Fix iteration within iteration
2016-12-04 23:55:25 -05:00
Stefan Wójcik
0007535a46
Add support for cursor.comment ( #1420 )
2016-12-04 00:33:42 -05:00
Stefan Wójcik
8391af026c
Fix filtering by embedded_doc=None ( #1422 )
2016-12-04 00:32:53 -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
Stefan Wojcik
16fea6f009
replace QuerySet.sum/average implementations with aggregate_sum/average + tweaks
2016-07-10 13:21:12 -07:00
Omer Katz
6c2230a076
Merge pull request #1188 from DavidBord/fix-1187
...
fix-#1187: count on ListField of EmbeddedDocumentField fails
2016-03-10 12:18:20 +02:00
Emmanuel Leblond
9f8327926d
Improve a bit queryset's test_elem_match
2016-01-28 18:18:51 +01:00
David Bordeynik
35d3d3de72
fix-#1187: count on ListField of EmbeddedDocumentField fails
2015-12-15 22:27:53 +02:00
srossiter
b7b28390df
Added upsert_one method on BaseQuerySet and modified test_upsert_one
2015-11-24 12:46:38 +00:00
Stefan Wojcik
a7aead5138
re-create the cursor object whenever we apply read_preference
2015-11-23 10:46:52 -08:00
reallistic
159b082828
Recursively create mongo query for embeddeddocument elemMatch
2015-10-18 16:34:24 -07:00
Emmanuel Leblond
92b9cb5d43
Add drop_collection for test_subclass_field_query
2015-09-08 17:35:35 +02:00
David Bordeynik
5334ea393e
fix-#842: Fix ignored chained options
2015-07-02 23:08:09 +03:00
Matthieu Rigal
4dc158589c
Moved change to right place and added fancier test
2015-06-26 17:58:53 +02:00
emilecaron
02f61c323d
update test
2015-06-25 18:26:52 +00:00
emilecaron
e43fae86f1
reproduce RuntimeError
2015-06-25 15:37:15 +00:00
Matthieu Rigal
5efabdcea3
Added tests, documentation and simplified code
2015-06-22 14:57:58 +02:00
Matthieu Rigal
d0b749a43c
Made test explicit with an assert
2015-06-21 13:02:59 +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
dd095279c8
aggregate_sum/average + unit tests
2015-06-18 11:01:37 -07:00
Matthieu Rigal
b124836f3a
Merge pull request #936 from MRigal/fix/712-avoid-crash-looping-on-corrupted-obj-id
...
changed ObjectIdField to_python() method to avoid crash, issue 712
2015-06-14 23:31:22 +02:00
Matthieu Rigal
7714cca599
Removed get_or_create() method, deprecated since 0.8
2015-06-12 20:51:59 +02:00
Matthieu Rigal
eec876295d
Added passing test to prove save and only problem was fixed
2015-06-12 12:13:28 +02:00
Matthieu Rigal
915849b2ce
Implemented method to auto-generate non-collisioning auto_id names
2015-06-11 22:48:34 +02:00
Matthieu Rigal
1d5b5b7d15
Merge pull request #1018 from MRigal/fix/517-no_dereference-not-respected-on-embedded-docs
...
Respect no_dereference() on embedded docs containing Ref
2015-06-11 14:16:11 +02:00
Marcel van den Elst
0f63e26641
use AssertEqual instead of AssertListEqual for py2.6 compatibility
2015-06-04 15:02:32 +02:00
Matthieu Rigal
621350515e
Added test was still failing and implemented solution as described in #517
2015-06-03 01:02:19 +02:00
Marcel van den Elst
f730591f2c
added passing test for updates on related models
...
ref #570 : test would fail from v0.8.5 up, but fixed in master
2015-05-20 13:01:44 +02:00
Matthieu Rigal
794101691c
removed wire_concern usage and cosmetics
2015-05-07 19:34:31 +02:00
mrigal
48316ba60d
implemented global IS_PYMONGO_3
2015-05-07 12:47:29 +02:00
mrigal
3b8f31c888
fix problems with cursor arguments
2015-05-07 12:47:29 +02:00
Eremeev Danil
aab0599280
test moved to another file, cosmetical fixes
2015-05-07 10:55:35 +05:00
Eremeev Danil
dfa8eaf24e
Added changeset, updated documentation and tests, changed test condition
2015-05-07 10:55:35 +05:00
Eremeev Danil
63d55cb797
solution for #949
2015-05-07 10:54:16 +05:00
David Bordeynik
a512ccca28
fix-#453: Queryset update doesn't go through field validation
2015-05-02 15:15:02 +03:00
mrigal
7a749b88c7
added new test like defined in issue #712 and changed ObjectIdField to_python() method to use a try except similar to other Field classes
2015-04-08 15:38:49 +02:00
David Bordeynik
129632cd6b
Fix #863 : Request Support for $min, $max Field update operators
2015-02-17 21:48:25 +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
mrigal
8aaa5951ca
fixed order of list for the test to pass
2014-12-03 13:13:07 +01:00
Omer Katz
e5a636a159
Added a test that verifies distinct operations on nested embedded documents.
2014-12-03 11:09:05 +02:00
mrigal
531fa30b69
added test for capacity to get distinct on subdocument of a list
2014-12-01 18:20:29 +01:00
Wilson Júnior
2b3bb81fae
Refactoring: Simple is better than complex
...
Signed-off-by: Wilson Júnior <wilsonpjunior@gmail.com>
2014-11-29 23:48:58 -02:00
Rik
67bf6afc89
fixed tests that were using undefined model fields
2014-11-29 23:20:30 -02:00
Wilson Júnior
74a89223c0
replaced text_score
attribute to get_text_score
method
...
Signed-off-by: Wilson Júnior <wilsonpjunior@gmail.com>
2014-11-29 23:09:26 -02:00
Matthew Ellison
43af9f3fad
Update Tests for EmbeddedDocument Unique Indicies
2014-11-20 11:20:04 -05:00
DavidBord
914c5752a5
fix-#759: with_limit_and_skip for count should default like in pymongo
2014-11-07 09:21:17 +02:00
DavidBord
c5f23ad93d
fix-#744: Querying by a field defined in a subclass raises InvalidQueryError
2014-11-06 00:15:23 +02:00
DavidBord
b011d48d82
fix-#778: Add Support For MongoDB 2.6.X's maxTimeMS
2014-10-29 15:40:29 +02:00