Ross Lawley
7f36ea55f5
Fix bulk test where behaviour changes based on mongo version
2014-06-27 09:14:56 +01:00
Ross Lawley
4ee212e7d5
Skip Test due to server bug in 2.6
2014-06-26 19:25:05 +01:00
Ross Lawley
da0a1bbe9f
Fix test_using
2014-06-26 17:13:21 +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
Ross Lawley
caba444962
Merge branch '0.9' into pr/673
...
Conflicts:
.travis.yml
2014-06-26 16:11:12 +01:00
Ross Lawley
dd51589f67
Updates
2014-06-26 16:02:40 +01:00
Omer Katz
5ae588833b
Allowed to switch databases for a specific query.
2014-06-25 18:22:39 +03:00
Omer Katz
f44c8f1205
Skipping a test that does not work on PyPy due to a PyPy bug/feature.
2014-06-25 13:11:32 +03: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
85187239b6
Fix tests msg
2014-05-29 15:21:24 -03:00
Jonathan Prates
819ff2a902
Renamed to has_data()
2014-05-29 14:36:30 -03:00
Jonathan Prates
c744104a18
Added test with meta
2014-05-29 10:53:20 -03:00
Jonathan Prates
39735594bd
Removed blank line
2014-05-28 17:15:48 -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
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
Ross Lawley
bcbbbe4046
Added test, updated AUTHORS and changelog ( #498 )
2013-11-29 12:04:30 +00:00
Ross Lawley
6925344807
Test updates
2013-11-29 12:01:14 +00:00
Ross Lawley
954131bd51
Merge remote-tracking branch 'origin/pr/496'
2013-11-29 11:49:54 +00:00
Ross Lawley
6db59a9c31
Fix setting Geo Location fields ( #488 )
2013-11-29 11:41:54 +00:00
Ross Lawley
c28d9135d9
Fixed distinct casting issue with ListField of EmbeddedDocuments ( #470 )
2013-11-29 09:48:53 +00:00
Loic Raucy
1978dc80eb
Added regression test for bug with DictField and numeric keys.
...
When a DictField has numeric fields, BaseDocument._lookup_field doesn't
work correclty.
2013-10-17 16:26:19 +02:00
Ross Lawley
0dd01bda01
Fixed "$pull" semantics for nested ListFields ( #447 )
2013-08-20 15:54:42 +00:00
Ross Lawley
a707598042
Allow fields to be named the same as query operators ( #445 )
2013-08-20 13:13:17 +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
5bcc454678
Handle dynamic fieldnames that look like digits ( #434 )
2013-08-07 09:07:57 +00:00
Ross Lawley
b4777f7f4f
Fix test
2013-07-30 15:04:52 +00:00
Ross Lawley
a57d9a9303
Added regression test ( #418 )
2013-07-30 13:28:05 +00:00
Ross Lawley
5e70e1bcb2
Update transform to handle docs erroneously passed to unset ( #416 )
2013-07-30 13:17:38 +00:00
Ross Lawley
6efd6faa3f
Fixed QuerySetNoCache.count() caching ( #410 )
2013-07-30 10:30:16 +00:00
Ross Lawley
7a97d42338
to_json test updates #420
2013-07-29 15:38:08 +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
Ross Lawley
f4ea1ad517
Merge remote-tracking branch 'origin/pr/376'
...
Conflicts:
AUTHORS
2013-07-10 13:50:52 +00:00
Ross Lawley
f34e8a0ff6
Fixed as_pymongo to return the id ( #386 )
2013-07-10 13:38:53 +00:00
Wilson Júnior
592c654916
extending support for queryset.sum and queryset.average methods
2013-07-05 10:36:11 -03:00
Ross Lawley
8d21e5f3c1
Fix tests for py2.6
2013-07-02 09:47:54 +00:00
kelvinhammond
caff44c663
Fixed sum and average queryset function
...
* Fixed sum and average map reduce functions for sum and average so that
it works with mongo dot notation.
* Added unittest cases / updated them for the new changes
2013-06-21 09:39:11 -04:00
Ross Lawley
d6edef98c6
Added match ($elemMatch) support for EmbeddedDocuments ( #379 )
2013-06-21 11:29:23 +00:00
Ross Lawley
9867e918fa
Fixed weakref being valid after reload ( #374 )
2013-06-21 11:04:29 +00:00
Ross Lawley
e116bb9227
Fixed queryset.get() respecting no_dereference ( #373 )
2013-06-21 10:39:10 +00:00
Ross Lawley
f1a1aa54d8
Added full_result kwarg to update ( #380 )
2013-06-21 10:19:40 +00:00
Ross Lawley
1a54dad643
Filter out index scan for pymongo cache
2013-06-05 10:42:41 +00:00
Stefan Wojcik
eba81e368b
dont use $in for _cls queries with a single subclass
2013-06-04 15:32:23 -07:00
Ross Lawley
ee725354db
Querysets are now lest restrictive when querying duplicate fields ( #332 , #333 )
2013-06-04 10:46:38 +00:00
Ross Lawley
985bfd22de
Merge remote-tracking branch 'origin/pr/333' into 333
2013-06-04 10:22:54 +00:00
Ross Lawley
4c8dfc3fc2
Fixed Doc.objects(read_preference=X) not setting read preference ( #352 )
2013-06-03 15:40:54 +00:00