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
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
5bcc454678
Handle dynamic fieldnames that look like digits ( #434 )
2013-08-07 09:07:57 +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
4c8dfc3fc2
Fixed Doc.objects(read_preference=X) not setting read preference ( #352 )
2013-06-03 15:40:54 +00:00
Ross Lawley
b2f78fadd9
Added test for upsert & update_one #336
2013-06-03 13:05:52 +00:00
Stefan Wojcik
f6d0b53ae5
test reference to a custom pk doc
2013-05-13 21:42:20 -07:00
Ross Lawley
f8350409ad
assertEquals is bad
2013-05-10 15:08:01 +00:00
Ross Lawley
5b498bd8d6
Added no_sub_classes context manager and queryset helper ( #312 )
2013-05-10 15:05:16 +00:00
Ross Lawley
941042d0ba
Merge remote-tracking branch 'origin/pr/312' into 312
2013-05-10 14:44:44 +00:00
Ross Lawley
9251ce312b
Querysets now utilises a local cache
...
Changed __len__ behavour in the queryset (#247 , #311 )
2013-05-10 13:57:32 +00:00
Wilson Júnior
96a964a183
added .disable_inheritance method for the simple fetch exclusives classes
2013-05-09 13:18:58 -03:00
Ross Lawley
9dfee83e68
Fixed querying string versions of ObjectIds issue with ReferenceField ( #307 )
2013-05-07 11:54:47 +00:00
Ross Lawley
870ff1d4d9
Added $setOnInsert support for upserts ( #308 )
...
Upserts now possible with just query parameters (#309 )
2013-05-07 11:11:55 +00:00
Ross Lawley
a2c429a4a5
Queryset cursor regeneration testcase
2013-05-02 10:48:09 +00:00
Ross Lawley
3d49c33c6a
Merge branch 'master' of github.com:MongoEngine/mongoengine
2013-05-01 08:48:42 +00:00
Ross Lawley
e58b3390aa
Removed import with from future
2013-05-01 08:48:14 +00:00
Alex Kelly
1c345edc49
Updated tests for passing write_concern to update and update_one to check return.
2013-04-30 21:43:44 +01:00
Ross Lawley
9c1cd81adb
Add support for new geojson fields, indexes and queries ( #299 )
2013-04-30 14:46:23 +00:00
Ross Lawley
5d7444c115
Ensure as_pymongo() and to_json honour only() and exclude() ( #293 )
2013-04-29 09:38:21 +00:00
Ross Lawley
5e94637adc
DecimalField now stores as float not string ( #289 )
2013-04-25 15:39:57 +00:00
Ross Lawley
81c7007f80
Added with_limit_and_skip support to count() ( #235 )
2013-04-23 10:38:32 +00:00
Ross Lawley
0d0befe23e
Removed __len__ from queryset ( #247 )
2013-04-22 16:19:55 +00:00
Ross Lawley
efad628a87
Objects queryset manager now inherited ( #256 )
2013-04-22 15:32:11 +00:00
Ross Lawley
c16e6d74e6
Updated connection to use MongoClient ( #262 , #274 )
2013-04-22 15:07:15 +00:00
Ross Lawley
1108586303
Updated queryset
2013-04-18 13:26:35 +00:00
Ross Lawley
420376d036
Merge fixes
2013-04-17 14:27:33 +00:00