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
4627af3e90
add FieldDoesNotExist exception to __all__
...
So it will be available when you do:
from mongoengine import *
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
Wilson Júnior
74a89223c0
replaced text_score
attribute to get_text_score
method
...
Signed-off-by: Wilson Júnior <wilsonpjunior@gmail.com>
2014-11-29 23:09:26 -02:00
Slam
2954017836
Fixes #811 . Fixes reflinks
2014-11-30 00:23:40 +02:00
mrigal
a03262fc01
implemented ability to return instances and not simple dicts for distinct on subdocuments
2014-11-28 16:23:23 +01:00
mrigal
d65ce6fc2c
fixed bug for queryset.distinct to work also on embedded documents, not just on lists of embedded documents
2014-11-28 13:54:33 +01: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
mikhailmoshnogorsky
b2c8c326d7
write_concern not in params of Collection#remove
2014-11-12 17:00:07 -05: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
André Ericson
3569529a84
Fix KeyError on reload() from a DynamicDocument
...
If the document is in memory and a field is deleted from the db,
calling reload() would raise a KeyError.
2014-11-08 19:11:51 -03:00
Yohan Graterol
73d6bc35ec
Fix merge with AUTHORS
2014-11-07 11:02:48 -05:00
Yohan Graterol
897480265f
fix PR #787
2014-11-07 10:55:46 -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
1fcf009804
fix-#787: Fix storing value of precision attribute in DecimalField
2014-11-07 15:03:11 +02:00
DavidBord
914c5752a5
fix-#759: with_limit_and_skip for count should default like in pymongo
2014-11-07 09:21:17 +02:00
DavidBord
c5f23ad93d
fix-#744: Querying by a field defined in a subclass raises InvalidQueryError
2014-11-06 00:15:23 +02:00
Yohan Graterol
1a5a436f82
Merge pull request #775 from claymation/in_bulk_honors_no_dereference
...
Make `in_bulk()` respect `no_dereference()`
2014-11-05 14:55:43 -05:00
Dmitry Konishchev
bc9aff8c60
Merge remote-tracking branch 'upstream/master' into pr-document-modify
2014-11-02 17:24:51 +03:00
Yohan Graterol
c4c7ab7888
Merge pull request #770 from yjaaidi/patch-1
...
Version bump 0.8.7 => 0.9.0
2014-11-01 14:37:51 -05:00
David Czarnecki
4b498ae8cd
Fix the documentation for reverse_delete_rule.
2014-10-31 11:40:20 -04:00
DavidBord
b011d48d82
fix-#778: Add Support For MongoDB 2.6.X's maxTimeMS
2014-10-29 15:40:29 +02:00
DavidBord
9a4aef0358
fix-#789: abstract shouldn't be inherited in EmbeddedDocument
2014-10-29 13:36:42 +02:00
Clay McClure
7d3146234a
Make in_bulk()
respect no_dereference()
2014-10-01 15:59:13 -04:00
Dmitry Konishchev
4752f9aa37
Add Document.modify() method
2014-09-30 15:30:01 +04:00
yjaaidi
aec06183e7
Version bump 0.8.7 => 0.9.0
2014-09-28 10:09:36 +02:00
Vjacheslav Murashkin
7430b31697
handle None from model __str__; Fixes #753
2014-09-04 16:54:23 +04:00
Bob Cribbs
d9da75d1c0
Fix multiple connections aliases being rewritten
2014-09-01 23:26:01 +03:00
Axel Haustant
6f645e8619
Added MultiPoint, MultiLine and MultiPolygon fields
2014-08-28 19:36:29 +02:00
Yohan Graterol
bce7ca7ac4
Fix merge of PR #747
2014-08-27 11:14:43 -05:00
DavidBord
9b30afeca9
fix-#397: Allow specifying the '_cls' as a field for indexes
2014-08-24 10:51:49 +03:00
DavidBord
c1b202c119
fix-#746: Stop ensure_indexes running on a secondaries unless connection is through mongos
2014-08-24 10:48:54 +03:00
wcdolphin
447127d956
Makes 'db' argument to connection optional.
2014-08-21 16:08:31 -07:00
Yohan Graterol
9f8cd33d43
Fix conflict for merge PR #726
2014-08-20 11:05:53 -05:00
Jay Shirley
6802967863
Merge remote-tracking branch 'upstream/master'
2014-08-19 15:52:58 -07:00
Bob Cribbs
0462f18680
Allow atomic update for the entire DictField
2014-08-19 23:38:36 +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
2f72b23a0d
fix-#725: queryset delete() should return the number of deleted objects
2014-08-10 14:58:39 +03:00
Jay Shirley
85336f9777
Relax the RegEx restrictions to allow the new ICAAN TLDs.
2014-08-08 09:11:05 -07:00
DavidBord
1e6a3163af
fix-#620: saving document doesn't create new fields in existing collection
2014-08-05 17:29:14 +03:00