Ross Lawley
6ecdc7b59d
Added FutureWarning for inherited classes not declaring allow_inheritance
...
Refs #437
2012-03-05 11:25:13 +00:00
Ross Lawley
6a229cfbc5
Updates can now take raw queries
2012-02-24 15:48:32 +00:00
Ross Lawley
a59b518cf2
Updates to imports for future pymongo 2.2
2012-02-17 11:18:25 +00:00
Ross Lawley
f59aa922ea
Added more .scalar tests
2012-01-27 12:20:47 +00:00
Ross Lawley
f60a49d6f6
Added .scalar to Queryset
...
More efficient than the previous .values_list implementation Ref #393
Reverted some of the .values_list code thats no longer needed.
Closes #415
2012-01-27 11:45:12 +00:00
Wilson Júnior
62219d9648
changed name
2011-12-16 11:07:38 -02:00
Wilson Júnior
7c1afd0031
tests for db_field
2011-12-13 11:56:35 -02:00
Wilson Júnior
ca7b2371fb
added support for dereferences
2011-12-13 11:54:19 -02:00
Wilson Júnior
ed5fba6b0f
support for embedded fields
2011-12-13 07:46:49 -02:00
Wilson Júnior
4a269eb2c4
added .select method
2011-12-12 13:39:37 -02:00
Ross Lawley
e9d7353294
Updated with_id to raise Error if used with a filter.
...
Closes #365
2011-12-02 07:11:06 -08:00
Ross Lawley
a6948771d8
Added ReferencField handling with .distinct()
...
Closes #356
2011-12-02 06:47:58 -08:00
Wilson Júnior
d9005ac2fc
added elemMatch support
2011-11-28 14:45:57 -02:00
Ross Lawley
e80144e9f2
Added multidb support
...
No change required to upgrade to multiple databases. Aliases are used
to describe the database and these can be manually registered or fall
through to a default alias using connect.
Made get_connection and get_db first class members of the connection class.
Old style _get_connection and _get_db still supported.
Refs: #84 #87 #93 #215
2011-11-22 08:01:14 -08:00
Adam Parrish
34646a414c
Fixes bug using positional operator to update embedded documents.
...
append_field wasn't getting reset to True in the loop, so fields wouldn't
get appended to clean_fields after str was encountered
[#354 ]
2011-11-11 01:10:00 -08:00
Ross Lawley
59bd72a888
Added tests for __repr__ fix
2011-11-01 02:15:31 -07:00
Ross Lawley
aa9ed614ad
Merge branch 'master' of https://github.com/mjtamlyn/mongoengine into transform_update
2011-11-01 01:19:30 -07:00
Ross Lawley
0624cdd6e4
Fixes collection creation post drop_collection
...
Thanks to Julien Rebetez for the original patch
closes [#285 ]
2011-10-11 02:26:33 -07:00
Marc Tamlyn
219d316b49
Fix iteration on querysets.
...
If iteration of a queryset was interrupted (by a break, or a caught
error), the next iterator would start from the second element as the
cursor had already moved to the first. This is fixed by adding a rewind
into the __iter__ method.
2011-10-05 13:26:57 +01:00
Wilson Júnior
a9cacd2e06
fixed embedded null item_frequencies
2011-09-20 08:56:30 -03:00
Ross Lawley
f549d8c0bc
Merge pull request #263 from johnarnfield/dev
...
Added polygon support and unit tests
2011-08-17 13:46:40 -07:00
John Arnfield
b037fb3e21
Added version check to the polygon test to ensure server version >= 1.9
2011-08-17 21:23:40 +01:00
John Arnfield
bd005575c4
Added geospatial polygon lookups & tests
2011-08-17 20:11:05 +01:00
John Arnfield
ca3b004921
Added tests for polygon queries
2011-08-17 20:04:38 +01:00
Ross Lawley
3f301f6b0f
Finishing touches to where implementation - thanks to dcrosta
...
Refs #242
2011-08-16 10:32:21 +01:00
Dan Crosta
13afead9fb
add where() method to QuerySet
2011-07-20 12:41:20 -04:00
Ross Lawley
0d1804461d
Updated handling setting of object managers and inheritance
2011-07-19 22:12:09 +01:00
Ross Lawley
a4c197a83c
Added update() convenience method to a document
...
Thanks to @dcrosta for the initial code
[closes #229 ]
2011-07-13 14:15:46 +01:00
Ross Lawley
e079924632
Added extra test for update / update_one
...
[closes #231 ]
2011-07-12 14:43:21 +01:00
Ross Lawley
1452d3fac5
Fixed item_frequency methods to handle null values
...
[fixes #216 ]
2011-07-11 16:50:31 +01:00
Ross Lawley
14be7ba2e2
Added support for the $ positional operator
...
closes #205
2011-06-21 14:50:11 +01:00
Ross Lawley
f41c5217c6
Added a cleaner way to get collection names
...
Also handles dynamic collection naming - refs #180 .
2011-06-20 11:48:12 +01:00
Ross Lawley
99f923e27f
Fixed queryset repr mid iteration
...
Closes #144
2011-06-17 15:04:07 +01:00
Ross Lawley
94cad89e32
Fixes to item_frequencies - now handles path lookups
...
fixes #194
2011-06-15 11:22:27 +01:00
Colin Howe
4174918476
Merge in upstream dev
2011-06-08 12:33:36 +01:00
Colin Howe
7c62fdc0b8
Allow for types to never be auto-prepended to indices
2011-06-08 12:20:58 +01:00
Ross Lawley
3c88faa889
Updated slave_okay syntax
...
Now inline with .timeout() and .snapshot().
Made them chainable - so its easier to use and added tests for cursor_args
2011-06-08 12:06:26 +01:00
Ross Lawley
55e20bda12
Added slave_okay syntax to querysets.
...
* slave_okay (optional): if True, allows this query to be run against a replica secondary.
2011-06-06 14:35:46 +01:00
Ross Lawley
56f00a64d7
Added bulk insert method.
...
Updated changelog and added tests / query_counter tests
2011-06-06 12:37:06 +01:00
Colin Howe
40df08c74c
Fix QuerySet.ensure_index for new index specs
2011-05-29 13:33:00 +01:00
Colin Howe
6f5bd7b0b9
Test needs a connection...
2011-05-26 18:54:52 +01:00
Ross Lawley
c903af032f
Added inline_map_reduce functionality
...
Also added map_reduce method for calculating item_frequencies
Closes #183
2011-05-26 15:44:43 +01:00
Ross Lawley
97a1310344
Tweakin test
2011-05-26 11:11:00 +01:00
Alistair Roche
bf6f03a412
Improved MapFields setting
2011-05-25 17:25:39 +01:00
Ross Lawley
5ab13518db
Added test confirming order_by reference field doesnt work
2011-05-25 13:50:52 +01:00
Ross Lawley
eb892241ee
Added regression test for editting embedded documents
...
Closes #35
2011-05-25 13:31:01 +01:00
Ross Lawley
fac3f038a8
Added regression test for issue with unset and pop
...
Closes #118
2011-05-25 12:20:56 +01:00
Ross Lawley
60c8254f58
Tweaks to item_frequencies
...
Updated to use a ternary statement and added tests
Refs #124 #122
Thanks to @nickvlku for the code.
2011-05-25 11:10:42 +01:00
Ross Lawley
2ce70448b0
Merge branch 'dev' into pull_124
2011-05-25 09:54:56 +01:00
Ross Lawley
3246cf8bdd
Merge pull request #177 from sbook/feature/update_lists
...
Added the ability to update individual items in ListFields.
Example:
Message.objects(pk=12).update(set__comments__5__body="Testing 123")
2011-05-24 06:13:10 -07:00