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
Ross Lawley
67f43b2aad
Allow args and kwargs to be passed through to_json ( #420 )
2013-07-29 15:29:48 +00:00
Ross Lawley
6e89e736b7
Merge remote-tracking branch 'origin/pr/393' into 393
...
Conflicts:
mongoengine/queryset/queryset.py
tests/queryset/queryset.py
2013-07-10 19:53:13 +00:00
Ross Lawley
634b874c46
Added QuerySetNoCache and QuerySet.no_cache() for lower memory consumption ( #365 )
2013-07-10 19:40:57 +00:00