mrigal
53fbc165ba
added content of PR #688 with a test to proove it is a bit right
2015-06-11 22:47:10 +02:00
mrigal
1862bcf867
added test for abstract document without pk creation and adapted behaviour
2015-06-11 22:47:10 +02:00
Matthieu Rigal
548a552638
Merge pull request #994 from MRigal/fix/cls-index-at-desired-position
...
Added hashed index, a bit more of geo-indexes, possibility to give _cls
2015-06-11 14:20:01 +02:00
Matthieu Rigal
621350515e
Added test was still failing and implemented solution as described in #517
2015-06-03 01:02:19 +02:00
Matthieu Rigal
283e92d55d
Added hashed index, a bit more of geo-indexes, possibility to give _cls and docs
2015-06-01 22:11:21 +02:00
mrigal
46817caa68
various unused imports removed (I am allergic)
2015-05-07 12:47:29 +02:00
rma4ok
0949df014b
[fix] SortedListField: update whole list if order is changed
2015-05-06 09:40:08 -04:00
David Bordeynik
422ca87a12
Merge pull request #979 from DavidBord/fix-453
...
fix-#453: Queryset update doesn't go through field validation
2015-05-02 20:26:56 +03:00
David Bordeynik
a512ccca28
fix-#453: Queryset update doesn't go through field validation
2015-05-02 15:15:02 +03:00
Matthew Ellison
5d6a28954b
Reflect Inheritance in Field's 'owner_document'
...
The 'owner_document' property of a Field now reflects the parent field
which first contained the Field when a Document in inherited.
Fixes #954
Closes #955
2015-04-29 14:23:57 -04:00
Axel Haustant
ddbcc8e84b
Ensure meta.strict does not bypass constructor check
2015-04-13 18:48:42 +02:00
Axel Haustant
cd2d9517a0
Added 'strict' meta parameter
2015-04-13 17:49:08 +02:00
Catstyle
175659628d
fix mark_as_changed: handle higher/lower level changed fields correctly to avoid conflict update error
2015-04-10 11:31:31 +08:00
Eremeev Danil
f77f45b70c
_get_changed_fields fix for embedded documents with id field.
...
removed commented out piece of code
added author and record to changelog
2015-04-09 12:36:48 +05:00
Michael Chase
a6a7cba121
Current class fields when unpickling. Fixes #888
...
Optimize dereferencing map by using sets.
2015-04-08 19:40:43 -07:00
David Bordeynik
bb77838b3e
fix-#914: ListField of embedded docs doesn't set the _instance attribute when iterating over it
2015-04-02 08:59:24 +03:00
David Bordeynik
de0e5583a5
Fix #595 : Support += and *= for ListField
2015-03-29 09:28:26 +03:00
Omer Katz
7d1ba466b4
Merge pull request #893 from MongoEngine/topic/pop-default-argument
...
Use dict.pop() default argument instead of checking if the key exists ourselves
2015-03-01 17:34:10 +02:00
Omer Katz
4bd72ebc63
Use None instead of mutable arguments.
2015-02-27 11:32:06 +02:00
Omer Katz
e5986e0ae2
Use dict.pop() default argument instead of checking if the key exists ourselves.
2015-02-27 11:18:09 +02:00
Matthew Ellison
42721628eb
Added EmbeddedDocumentListField Implementation
...
- Added new field type: EmbeddedDocumentListField.
- Provides additional query ability for lists of embedded documents.
- Closes MongoEngine/mongoengine#503 .
2015-02-20 11:18:40 -05:00
David Bordeynik
5c3d91e65e
Fix #866 : does not follow
2015-02-16 12:25:37 +02:00
Matthew Ellison
1a24d599b3
Field Choices Now Accept Subclasses of Documents
...
- Fields containing 'choices' of which a choice is an
EmbeddedDocument or Document will now accept subclasses of that
choice.
2015-01-11 20:54:59 -05:00
Slam
51f314e907
Doc fixes, thanks @3Inc
...
Author: Slam <3lnc.slam@gmail.com>
Date: Fri Nov 28 13:10:38 2014 +0200
2014-12-02 00:37:06 -02:00
Wilson Júnior
2b3bb81fae
Refactoring: Simple is better than complex
...
Signed-off-by: Wilson Júnior <wilsonpjunior@gmail.com>
2014-11-29 23:48:58 -02:00
Rik
79705fbf11
moved initialization of _created before FieldDoesNotExist check
...
Because otherwise we'll get a FieldDoesNotExist error on the field
_created.
2014-11-29 23:20:30 -02:00
Rik
191a4e569e
added ints in string.format() for 2.6 compability
2014-11-29 23:20:30 -02:00
Rik
06064decd2
check for dynamic document, exclude id pk and _cls
2014-11-29 23:20:30 -02:00
Rik
4cca9f17df
Check if undefined fields are supplied on document
...
If an undefined field is supplied to a document instance, a
`FieldDoesNotExist` Exception will be raised.
2014-11-29 23:20:30 -02:00
Yohan Graterol
d27e1eee25
Merge pull request #806 from mmelliso/mmelliso/indexing
...
Generate Unique Indices for Lists of EmbeddedDocs
2014-11-25 02:37:53 -05:00
Slam
e0f1e79e6a
Minor typos fixes in docs
2014-11-24 16:57:43 +02:00
Matthew Ellison
bc53dd6830
Generate Unique Indices for Lists of EmbeddedDocs
...
- Unique indices are now created in the database for EmbeddedDocument
fields when the EmbeddedDocument is in a ListField
- Closes Issue #358
2014-11-19 22:37:27 -05:00
David Bordeynik
8965172603
fix-#515: sparse fields
2014-11-14 21:45:46 +02:00
Yohan Graterol
a12b2de74a
Fix merge MongoEngine/mongoengine#799
2014-11-09 21:31:56 -05:00
Yohan Graterol
57d772fa23
Fix merge in tests/document/instance.py
2014-11-09 21:19:05 -05:00
André Ericson
2af55baa9a
Better BaseDocument equality check when not saved
...
When 2 instances of a Document had id = None they would be considered
equal unless an __eq__ were implemented.
We now return False for such case. It now behaves more similar to
Django's ORM.
2014-11-09 16:19:15 -03:00
David Bordeynik
0452eec11d
fix-#771: OperationError: Shard Keys are immutable. Tried to update id even though the document is not yet saved
2014-11-09 19:23:49 +02:00
Yohan Graterol
73d6bc35ec
Fix merge with AUTHORS
2014-11-07 11:02:48 -05:00
DavidBord
bdbd495a9e
fix-#734: set attribute to None does not work (at least for fields with default values). Solves #735 as well
2014-11-07 15:11:21 +02:00
DavidBord
c5f23ad93d
fix-#744: Querying by a field defined in a subclass raises InvalidQueryError
2014-11-06 00:15:23 +02:00
DavidBord
9a4aef0358
fix-#789: abstract shouldn't be inherited in EmbeddedDocument
2014-10-29 13:36:42 +02:00
Vjacheslav Murashkin
7430b31697
handle None from model __str__; Fixes #753
2014-09-04 16:54:23 +04:00
Axel Haustant
6f645e8619
Added MultiPoint, MultiLine and MultiPolygon fields
2014-08-28 19:36:29 +02:00
DavidBord
9b30afeca9
fix-#397: Allow specifying the '_cls' as a field for indexes
2014-08-24 10:51:49 +03:00
DavidBord
46da918dbe
fix-#733: index_cls is ignored when deciding to set _cls as index prefix
2014-08-17 11:19:18 +03:00
DavidBord
1e6a3163af
fix-#620: saving document doesn't create new fields in existing collection
2014-08-05 17:29:14 +03:00
DavidBord
e008919978
fix-#399: Not overriding default values when loading a subset of fields
2014-08-05 14:34:54 +03:00
Wilson Júnior
6c0112c2be
refs #709 , added support to disable auto_sync
2014-07-25 18:12:26 -03:00
Wilson Júnior
87c97efce0
refs #709 , added CachedReferenceField.sync_all to sync all documents on demand
2014-07-25 08:44:59 -03:00
Wilson Júnior
6c4aee1479
added CachedReferenceField restriction to use in EmbeddedDocument
2014-07-17 13:42:34 -03:00