Slam
51f314e907
Doc fixes, thanks @3Inc
...
Author: Slam <3lnc.slam@gmail.com>
Date: Fri Nov 28 13:10:38 2014 +0200
2014-12-02 00:37:06 -02: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
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
mrigal
a03262fc01
implemented ability to return instances and not simple dicts for distinct on subdocuments
2014-11-28 16:23:23 +01:00
mrigal
d65ce6fc2c
fixed bug for queryset.distinct to work also on embedded documents, not just on lists of embedded documents
2014-11-28 13:54:33 +01:00
Slam
e0f1e79e6a
Minor typos fixes in docs
2014-11-24 16:57:43 +02:00
mikhailmoshnogorsky
b2c8c326d7
write_concern not in params of Collection#remove
2014-11-12 17:00:07 -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
Yohan Graterol
1a5a436f82
Merge pull request #775 from claymation/in_bulk_honors_no_dereference
...
Make `in_bulk()` respect `no_dereference()`
2014-11-05 14:55:43 -05:00
DavidBord
b011d48d82
fix-#778: Add Support For MongoDB 2.6.X's maxTimeMS
2014-10-29 15:40:29 +02:00
Clay McClure
7d3146234a
Make in_bulk()
respect no_dereference()
2014-10-01 15:59:13 -04:00
DavidBord
9b30afeca9
fix-#397: Allow specifying the '_cls' as a field for indexes
2014-08-24 10:51:49 +03:00
DavidBord
2f72b23a0d
fix-#725: queryset delete() should return the number of deleted objects
2014-08-10 14:58:39 +03:00
DavidBord
e008919978
fix-#399: Not overriding default values when loading a subset of fields
2014-08-05 14:34:54 +03:00
Wilson Júnior
892ddd5724
added a wrapper to aggregate in Queryset.aggregate
2014-07-12 23:18:08 -03:00
Wilson Júnior
30c01089f5
added ordering support for text queries
2014-07-08 08:38:41 -03:00
Wilson Júnior
89825a2b21
added skip to mongodb older
2014-07-07 23:45:44 -03:00
Wilson Júnior
a743b75bb4
fixed a order in command
2014-07-07 21:02:13 -03:00
Wilson Júnior
f7ebf8dedd
Added support for text search and text_score.
2014-07-07 20:24:37 -03:00
Omer Katz
74a3c4451b
using() was added in 0.9. Not 0.8.
2014-06-27 16:35:26 +03:00
Ross Lawley
c3f8925f46
Merge pull request #583 from Gerrrr/distinct_bug
...
Fixed bug in distinct method
2014-06-27 12:22:09 +01:00
Ross Lawley
b8353c4a33
Merge branch 'master' into pr/586
...
Conflicts:
mongoengine/queryset/base.py
tests/queryset/queryset.py
2014-06-27 10:06:30 +01:00
Stefan Wojcik
5e776a07dd
allow ordering to be cleared
2014-06-27 09:58:49 +01:00
Ross Lawley
70651ce994
Fix as_pymongo bug
2014-06-26 19:24:52 +01:00
Ross Lawley
b1b6493755
Merge branch 'pr/676'
2014-06-26 16:46:01 +01:00
Dmitry Konishchev
11724aa555
QuerySet.modify() method to provide find_and_modify() like behaviour
2014-06-26 16:18:42 +01:00
Omer Katz
5ae588833b
Allowed to switch databases for a specific query.
2014-06-25 18:22:39 +03:00
Yohan Graterol
a70dbac0e6
Merge pull request #626 from KonishchevDmitry/pr-not-unique-error-on-update
...
Raise NotUniqueError in Document.update() on pymongo.errors.DuplicateKeyError
2014-06-25 10:18:09 -05:00
Jonathan Prates
7bb2fe128a
Added PR #657
2014-06-12 11:08:41 -03:00
Jonathan Prates
2312e17a8e
Merge remote-tracking branch 'elasticsales/clear-default-ordering'
2014-06-12 10:28:36 -03:00
Stefan Wojcik
1eacc6fbff
clear ordering via empty order_by
2014-05-30 15:08:03 -07:00
Jonathan Prates
819ff2a902
Renamed to has_data()
2014-05-29 14:36:30 -03:00
Jonathan Prates
c87801f0a9
Using first() from cloned queryset
2014-05-28 17:26:28 -03:00
Jonathan Prates
30964f65e4
Remove orderby in if stmt
2014-05-28 17:06:15 -03:00
Jonathan Prates
ee0c7fd8bf
Change for loop to self.first()
2014-05-28 13:21:00 -03:00
Jonathan Prates
dfdecef8e7
Fix py2 and py3
2014-05-28 09:40:22 -03:00
Jonathan Prates
edcdfeb057
Fix syntax error
2014-05-28 09:03:12 -03:00
Jonathan Prates
47f0de9836
Py3 fix
2014-05-28 08:36:57 -03:00
Jonathan Prates
3faf3c84be
Avoid to open all documents from cursors in an if stmt
...
Using a cursos in an if statement:
cursor = Collection.objects
if cursor:
(...)
Will open all documents, because there are not an __nonzero__ method.
This change check only one document (if present) and returns True or False.
2014-05-27 16:33:38 -03:00
Dmitry Konishchev
803caddbd4
Raise NotUniqueError in Document.update() on pymongo.errors.DuplicateKeyError
2014-04-09 14:25:53 +04:00
Wilson Júnior
295ef3dc1d
db_alias support and fixes for custom map/reduce output
2014-02-25 15:36:30 -03:00
Aleksandr Sorokoumov
328e062ae9
Distinct method bugfix
...
Creation of instances is executed now only for EmbeddedDocumentField
and GenericEmbeddedDocumentField in distinct method
2014-02-24 19:21:11 +04:00
Ross Lawley
0e5a0661e1
Fixed possible issue not catching duplicate key errors
2014-01-24 13:50:09 +00:00
Ross Lawley
7200a8cb84
Merge pull request #498 from woakas/patch-1
...
Fixed bug for count method when _none is True
2013-11-29 04:01:45 -08:00
Ross Lawley
c28d9135d9
Fixed distinct casting issue with ListField of EmbeddedDocuments ( #470 )
2013-11-29 09:48:53 +00:00
Gustavo Andrés Angulo
27b846717f
Fixed bug for count method when _none is True
...
If my queryset have elements example:
qs.all().count() => 10
q = qs.all().none()
the count in queryset "q" must be 0
q.count() => 0
2013-10-17 16:37:31 -05:00
swistakm
66d9182e50
fix broken external docs link
2013-09-20 12:43:26 +02:00
Ross Lawley
fffd0e8990
Fixed error raise
2013-08-20 18:54:14 +00:00
Ross Lawley
29c887f30b
Updated field filter logic - can now exclude subclass fields ( #443 )
2013-08-20 12:21:20 +00:00
Ross Lawley
6efd6faa3f
Fixed QuerySetNoCache.count() caching ( #410 )
2013-07-30 10:30:16 +00:00