Ross Lawley
bb1367cfb9
Merge branch 'master' into pr/674
2014-06-26 16:22:21 +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
67a65a2aa9
Installing unittest2 on Python 2.6.
2014-06-26 11:17:57 +03: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
Yohan Graterol
4db4f45897
Merge pull request #651 from elasticsales/server-13975-precaution
...
Don't use a system collection in the tests
2014-06-25 09:48:30 -05:00
Omer Katz
29309dac9a
Mongo clients with the same settings should be shared since they manage a connection pool.
...
Also, I removed old code that was supposed to support Pymongo<2.1 which we don't support anymore.
2014-06-25 16:53:24 +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
Omer Katz
8e852bce02
Pillow provides a more descriptive error message, therefor the build failure.
2014-06-25 10:58:00 +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
Sagiv Malihi
9835b382da
added __slots__ to BaseDocument and Document
...
changed the _data field to static key-value mapping instead of hash table
This implements #624
2014-06-10 16:11:27 +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
Stefan Wojcik
abcacc82f3
dont use a system collection
2014-05-21 22:21:46 -07:00
Ronald van Rij
9544b7d968
Fixed unit test which used assertIsNotNone
2014-05-09 14:33:18 +02:00
Ronald van Rij
babbc8bcd6
When using autogenerated document ids in a sharded collection, do set that id back into the Document
2014-05-06 09:34:16 +02:00
Dmitry Konishchev
b45a601ad2
Test raising NotUniqueError by Document.update()
2014-04-15 19:32:42 +04:00
Damien Churchill
db7f93cff3
improved update queries for BaseDict & BaseList
...
Migrate changes to include updating single elements of ListFields as
well as MapFields by adding the same changes to BaseList. This is
done by ensuring all BaseDicts and BaseLists have the correct name
from the base of the nearest (Embedded)Document, then marking changes
with their key or index when they are changed.
Tests also all fixed up.
2014-03-12 15:07:40 +00:00
tprimozi
158578a406
Added test that fails due to weakref _instance bug.
2014-03-03 15:10:35 +00:00
Vlad Zloteanu
ef55e6d476
fixes MongoEngine/mongoengine#589
2014-03-01 17:51:59 +01:00
Wilson Júnior
295ef3dc1d
db_alias support and fixes for custom map/reduce output
2014-02-25 15:36:30 -03:00
Frank Battaglia
86363986fc
whitespace
2014-02-24 11:04:29 -05:00
Frank Battaglia
0a2dbbc58b
add tests for mongo query operators
2014-02-24 11:03:50 -05:00
Frank Battaglia
673a966541
add tests for save_condition kwarg in document.save()
2014-02-24 11:02:37 -05:00
Aleksandr Sorokoumov
e60d56f060
test implemented
2014-02-24 19:22:36 +04:00
tprimozi
0523c2ea4b
Fixed document equality: documents in different collections can have equal ids.
2014-02-13 18:12:33 +00:00
tprimozi
c5c7378c63
Implemented equality between Documents and DBRefs
2014-02-04 13:41:17 +00:00
Brian J. Dowling
9b2080d036
Added a test for allowing dynamic dictionary-style field access
...
Closes #559
2014-01-28 22:10:26 -05:00
Ross Lawley
6d5e7d9e81
Calling reload on deleted / nonexistant documents raises DoesNotExist ( #538 )
2014-01-24 14:10:55 +00:00
Ross Lawley
bc08bea284
Fix circular import issue with django auth ( #531 ) ( #545 )
2014-01-24 13:54:16 +00:00
Ross Lawley
708dbac70e
Depending on pymongo it might raise a TypeError or ValueError
2014-01-14 10:09:11 +00:00
Matthew Owen
f7302f710b
Reject email addresses where hostname ends with '.'
2013-12-05 09:50:12 -08:00
Ross Lawley
d868cfdeb0
Fix multi level nested fields getting marked as changed ( #523 )
2013-11-29 16:24:32 +00:00
Ross Lawley
b024dd913d
EmbeddedDocument._instance is now set when settng the attribute ( #506 )
2013-11-29 13:09:11 +00:00
Ross Lawley
a2a698ab0e
Fixed EmbeddedDocument with ReferenceField equality issue ( #502 )
2013-11-29 12:46:18 +00:00
Ross Lawley
8dcd998945
Merge pull request #499 from drudim/master
...
Error in GenericReferenceField serialization was fixed
2013-11-29 04:06:04 -08: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
3a3b96e0be
Merge remote-tracking branch 'origin/pr/485'
2013-11-29 10:32:49 +00:00