helduel
1a93b9b226
More precise "created" keyword argument signals
...
If a document has a user given id value, the post_save signal always got the
"created" keyword argument with False value (unless force_insert is True).
This patch uses the result of getlasterror to check whether the save was an
update or not.
2012-11-08 16:30:29 +01:00
Ross Lawley
363e50abbe
Updated documents with embedded documents can be created in a single operation ( MongoEngine/mongoengine#6 )
2012-11-08 14:46:56 +00:00
Ross Lawley
b8d53a6f0d
Added json serialisation support
...
- Added to_json and from_json to Document (MongoEngine/mongoengine#1 )
- Added to_json and from_json to QuerySet (MongoEngine/mongoengine#131 )
2012-11-08 12:04:14 +00:00
Ross Lawley
e7c0da38c2
Better implementation for none - MongoEngine/mongoengine#127
2012-11-07 15:09:11 +00:00
Ross Lawley
8706fbe461
Updated index creation now tied to Document class (( MongoEngine/mongoengine#102 )
2012-11-07 15:04:45 +00:00
Ross Lawley
9ca96e4e17
Added none() to queryset ( MongoEngine/mongoengine#127 )
2012-11-07 13:51:02 +00:00
Ross Lawley
99fe1da345
Add value_decorator into SequenceField
...
Allows post processing of the calculated counter value.
2012-11-07 13:20:34 +00:00
Ross Lawley
1986e82783
Added clean method to documents for pre validation data cleaning ( MongoEngine/mongoengine#60 )
2012-11-07 12:12:28 +00:00
Ross Lawley
7073b9d395
Added validation and tests
2012-11-06 18:55:14 +00:00
Ross Lawley
7d90aa76ff
Add _instance to Embedded Documents
...
Fixes MongoEngine/mongoengine#139
2012-11-06 16:04:23 +00:00
Ross Lawley
3d5b6ae332
Inheritance is off by default ( MongoEngine/mongoengine#122 )
2012-10-22 19:29:26 +00:00
Ross Lawley
6f29d12386
Changed the inheritance model to remove types
...
The inheritance model has changed, we no longer need to store an array of
`types` with the model we can just use the classname in `_cls`.
See the upgrade docs for information on how to upgrade
MongoEngine/mongoengine#148
2012-10-15 13:48:02 +00:00
Aleksey Porfirov
e4af0e361a
Add session expiration test (with django timezone support activated)
2012-10-15 02:11:01 +04:00
Ross Lawley
12f3f8c694
Added chaining regression test ( MongoEngine/mongoengine#135 )
2012-10-01 16:27:59 +00:00
Ross Lawley
79098e997e
Updated test
2012-10-01 16:20:48 +00:00
Ross Lawley
dc1849bad5
Unicode fix for repr ( MongoEngine/mongoengine#133 )
2012-10-01 16:15:25 +00:00
Ross Lawley
e2d826c412
Allow updates with match operators ( MongoEngine/mongoengine#144 )
2012-10-01 15:26:34 +00:00
Ross Lawley
e6d796832e
Unicode fix reverted but can have custom validator
...
MongoEngine/mongoengine#136
2012-10-01 14:48:53 +00:00
Ross Lawley
7a877a00d5
Updated URLField
...
handle unicode and custom validator (MongoEngine/mongoengine#136 )
2012-10-01 13:59:15 +00:00
Ross Lawley
6a4351e44f
Fixed reload issue with ReferenceField where dbref=False ( MongoEngine/mongoengine#138 )
2012-09-24 18:49:29 +00:00
Ross Lawley
ab4d4e6230
Fix ReferenceField dbref = False
2012-09-18 21:37:45 +00:00
Ross Lawley
5949970a95
Fixed index inheritance issues
...
firmed up testcases (MongoEngine/mongoengine#123 ) (MongoEngine/mongoengine#125 )
2012-09-11 15:14:37 +00:00
Ross Lawley
a2183e3dcc
Reverted EmbeddedDocuments meta handling.
...
You now can turn off inheritance (MongoEngine/mongoengine#119 )
2012-09-07 13:23:46 +01:00
Ross Lawley
a8e787c120
Update index spec generation so its not destructive ( MongoEngine/mongoengine#113 )
2012-09-04 14:39:19 +01:00
Ross Lawley
3534bf7d70
Fixed index spec inheritance ( MongoEngine/mongoengine#111 )
2012-09-04 08:20:19 +01:00
Ross Lawley
f108c4288e
Updated queryset.delete so you can use with skip / limit ( MongoEngine/mongoengine#107 )
2012-09-03 12:53:50 +01:00
Ross Lawley
9b9696aefd
Updated index creation allows kwargs to be passed through refs ( MongoEngine/mongoengine#104 )
2012-09-03 12:29:58 +01:00
Ross Lawley
576e198ece
Fixed Q object merge edge case ( MongoEngine/mongoengine#109 )
2012-09-03 11:33:30 +01:00
Ross Lawley
52f85aab18
Merge branch 'master' of https://github.com/dimonb/mongoengine
...
Conflicts:
mongoengine/base.py
2012-09-03 11:00:41 +01:00
Dmitry Balabanov
ab60fd0490
sharded collection document reload testcase
2012-08-30 14:37:11 +04:00
Ross Lawley
81d402dc17
Fixing tests
2012-08-24 13:58:38 +01:00
Ross Lawley
87792e1921
Test checking can save if not included
...
ref: MongoEngine/mongoengine#70
2012-08-24 11:45:04 +01:00
Ross Lawley
4c8296acc6
Added testcase for MongoEngine/mongoengine#77
2012-08-24 11:02:32 +01:00
Ross Lawley
1c5e6a3425
NotUniqueError gracefully replacing ambiguous OperationError when appropriate
2012-08-24 10:38:10 +01:00
Ross Lawley
a0e3f382cd
Added testcase ref MongoEngine/mongoengine#92
2012-08-24 09:20:14 +01:00
Ross Lawley
b8af154439
Merge pull request #88 from akolechkin/master
...
Fix for UnboundLocalError in composite index with pk field
2012-08-24 00:58:09 -07:00
Ross Lawley
f594ece32a
Fixed MRO issue in base.py MongoEngine/mongoengine#95
2012-08-24 08:54:54 +01:00
Ross Lawley
03beb6852a
Merge branch 'master' of https://github.com/elasticsales/mongoengine
2012-08-24 08:53:26 +01:00
Anthony Nemitz
ab9e9a3329
adding comment to the MRO test case
2012-08-23 18:09:51 -07:00
Anthony Nemitz
a4b09344af
test case for multiple inheritance raising MRO exception
2012-08-23 18:08:12 -07:00
Ross Lawley
8cb8aa392c
Updated tests
2012-08-23 17:08:23 +01:00
Ross Lawley
3255519792
Updating test
2012-08-23 16:31:22 +01:00
Ross Lawley
ba276452fb
Fix tests
2012-08-23 11:09:07 +01:00
Ross Lawley
4ffa8d0124
Updated ReferenceField's to optionally store ObjectId strings.
...
This will become the default in 0.8 (MongoEngine/mongoengine#89 )
2012-08-23 11:02:38 +01:00
Anton Kolechkin
0e3c34e1da
test for composite index with pk, i used EmbeddedDocument because this is the only issue when it's needed
2012-08-23 11:57:22 +07:00
Ross Lawley
658b3784ae
Split out warning tests as they are order dependent
2012-08-22 09:44:32 +01:00
Ross Lawley
0526f577ff
Embedded Documents still can inherit fields MongoEngine/mongoengine#84
2012-08-22 09:27:18 +01:00
Ross Lawley
b1eeb77ddc
Added FutureWarning - save will default to cascade=False
in 0.8
2012-08-21 17:45:51 +01:00
Ross Lawley
999d4a7676
Fixed broken test
2012-08-21 17:29:38 +01:00
Ross Lawley
1b80193aac
Added example of indexing embedded fields
...
MongoEngine/mongoengine#75
2012-08-20 17:50:18 +01:00