Ross Lawley
9c212306b8
Updated setup / added datetime test
2012-05-29 16:24:25 +01:00
Ross Lawley
45e015d71d
Added test for keys with spaces
2012-05-09 20:49:34 +01:00
Ross Lawley
bbefd0fdf9
Added example of bi directional delete rules + test
...
refs mongoengine/mongoengine#15
2012-05-09 13:54:33 +01:00
Ross Lawley
ca8b58d66d
Fixed indexing on _id for covered indexes
...
fixes #4
2012-05-01 11:27:37 +01:00
Ross Lawley
d7765511ee
Invalid DB Data now raises an InvalidDocumentError
...
fixes #2
2012-05-01 11:03:23 +01:00
Ross Lawley
0240a09056
Cleaned up ValidationError Refs #459
2012-05-01 10:14:16 +01:00
Ross Lawley
4ce1ba81a6
Merge branch 'dev-disable-indexing' of https://github.com/colinhowe/mongoengine
...
Conflicts:
mongoengine/queryset.py
2012-05-01 09:37:01 +01:00
Colin Howe
7e376b40bb
Add new meta option to Document: allow_index_creation.
...
Defaults to True. If set to False then MongoEngine will not ensure indexes exist
2012-03-19 20:27:08 +00:00
Ross Lawley
bd1572f11a
Fixed upgrade docs and instructions
2012-03-12 10:31:51 +00:00
Ross Lawley
6ecdc7b59d
Added FutureWarning for inherited classes not declaring allow_inheritance
...
Refs #437
2012-03-05 11:25:13 +00:00
Robert Kajic
c272b7901f
Fix for bug where changes to a a embedded document field are not recorded if the root document was just created+saved.
2012-03-02 15:35:15 +01:00
Ross Lawley
32fc4152a7
Enable covered indexes for simple documents.
...
Refs #444
2012-03-02 13:42:24 +00:00
Ross Lawley
44b9fb66e1
Updates must have an operation
...
Closes #387
2012-02-29 11:04:09 +00:00
Ross Lawley
2a391f0f16
Raise an error if trying to perform a join
...
You can't join across reference fields, so raise an error
if someone tries to.
2012-02-29 10:10:51 +00:00
Ross Lawley
296ef5bddf
Merge branch 'geo2d' into dev
2012-02-24 10:28:52 +00:00
Ross Lawley
a59b518cf2
Updates to imports for future pymongo 2.2
2012-02-17 11:18:25 +00:00
Robert Kajic
d3962c4f7d
Added support for creating a geo2d index by prefixing the field name with a *
2012-01-31 22:31:24 +01:00
Wilson Júnior
0d867a108d
mixin inheritance
2011-12-19 11:31:42 -02:00
Ross Lawley
3e2f035400
Abstract documents can now declare indexes
...
fixes #380
2011-12-07 02:15:50 -08:00
Ross Lawley
112e921ce2
Syntax cleaning
2011-12-07 01:34:36 -08:00
Ross Lawley
216f15602b
Fixing test
2011-12-07 01:17:35 -08:00
Ross Lawley
fbe1901e65
Added some tests #384
2011-12-07 01:16:45 -08:00
Ross Lawley
8d2bc444bb
db_alias using in model, queryset, reference fields, derefrence.
2011-12-07 01:16:36 -08:00
Ross Lawley
700bc1b4bb
Multiple fields with the same db_field now raises Exception
...
Closes #329
2011-12-02 08:44:15 -08:00
Ross Lawley
403977cd49
Added test for saving references unnecessarily.
...
Refs #359
2011-12-02 06:40:57 -08:00
Ross Lawley
153538cef9
Added test for saving false on dynamic documents
...
Refs #282
Closes #311
2011-12-02 06:34:51 -08:00
Ross Lawley
6419a8d09a
Fixed False BooleanField marked as unset by _delta()
...
Closes #282
2011-12-02 06:03:15 -08:00
Ross Lawley
e231f71b4a
EmbeddedDocuments dont support Reverse Delete Rules
...
Now throws an InvalidDocumentError
Refs #227
2011-12-02 02:46:55 -08:00
Ross Lawley
8a44232bfc
Added Reverse Delete Rule support to ListFields
...
DictFields and MapFields aren't supported and raise an
InvalidDocument Error
Closes #254
2011-12-01 07:57:24 -08:00
Ross Lawley
9188f9bf62
Added custom cascade kwarg options
...
Allows the user to overwrite any default kwargs
Closes #295
2011-11-30 08:54:33 -08:00
Ross Lawley
beacfae400
Removed use of _get_subclasses favouring get_document
...
_get_subclasses not actually required and causes issues
where Base Classes aren't imported but dont actually
need to be.
Fixes #271
2011-11-30 07:55:33 -08:00
Ross Lawley
c775c0a80c
Circular references with EmbeddedDocumentField fix
...
Fixes #345
2011-11-28 08:23:28 -08:00
Ross Lawley
e1bb453f32
Configurable cascading saves
...
Updated cascading save logic - can now add meta or pass
cascade to save(). Also Cleaned up reset changed fields logic
as well, so less looping
Refs: #370 #349
2011-11-28 06:51:17 -08:00
Ross Lawley
83fff80b0f
Cleaned up dereferencing
...
Dereferencing now respects max_depth, so should be more performant.
Reload is chainable and can be passed a max_depth for dereferencing
Added an Observer for ComplexBaseFields.
Refs #324 #323 #289
Closes #320
2011-11-25 08:36:47 -08: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
Ross Lawley
63c5a4dd65
Fixes saving document schemas that have changed
...
Ensures that form defaults which are documents are
automatically marked as changed, so schemas can evolve
without migration issues.
[#360 ]
2011-11-22 07:34:08 -08: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
Ross Lawley
f7fbb3d2f6
Relaxed field name checking on embedded documents
2011-09-20 03:45:11 -07:00
Ross Lawley
050542c29b
Added InvalidDocumentError
...
Ensures defined documents are valid and users don't override core methods
by accident.
fixes #275
2011-09-09 17:36:40 +01:00
Ross Lawley
1631788ab6
Now Raise an exception if subclasses are missing at querytime.
...
Beats returning None thanks to #aid for mentioning it on IRC
2011-08-24 13:37:39 +01:00
Ross Lawley
bda716ef9d
Improved update in test case for removing inheritance
2011-08-18 08:30:52 +01:00
Wilson Júnior
b76590dc01
more tests for embedded lists
2011-08-17 09:32:04 -03:00
Ross Lawley
3c8cbcfee7
Added tests for showing how to set embedded document indexes
...
refs #257
2011-08-16 16:50:50 +01:00
Wilson Júnior
331f8b8ae7
fixes dereference for documents (allow_inheritance = False)
2011-08-09 14:31:26 -03:00
Ross Lawley
3f3f93b0fa
Fixing delta bug for dict fields
2011-07-29 15:48:29 +01:00
Ross Lawley
ac72722e57
Fixing bug setting a value that equates to false
2011-07-22 13:51:11 +01:00
Ross Lawley
72995a4b3e
Fixed changing default values to False for embedded items
2011-07-13 16:06:40 +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
cace665858
_delta checking didn't handle db_field_names at all
...
Fixed and added tests, thanks to @wpjunior and @iapain for initial test cases
[fixes #226 ]
2011-07-12 10:20:36 +01:00