David Bordeynik
35d3d3de72
fix-#1187: count on ListField of EmbeddedDocumentField fails
2015-12-15 22:27:53 +02:00
George Macon
00221e3410
Allow sparse compound indexes
2015-12-09 18:38:28 -05:00
RussellLuo
23f07fde5e
Add support for mocking MongoEngine based on mongomock
...
Using `mongomock://` scheme in URI enables the mocking. Fix #1045 .
2015-12-06 11:08:00 +08:00
Omer Katz
b42b760393
Merge branch 'fix-reloading-strict' of https://github.com/paularmand/mongoengine into fix-reloading-strict and bumped version.
...
# Conflicts:
# AUTHORS
2015-11-30 12:13:47 +02:00
Paul-Armand Verhaegen
6133f04841
Manual merge conflicts in AUTHORS
2015-11-27 23:55:55 +01:00
srossiter
fc3db7942d
updated changelog and version tuple
2015-11-24 12:56:59 +00:00
srossiter
164e2b2678
Docstring change and rename variable to avoid clash with kwargs
2015-11-24 12:53:09 +00:00
srossiter
b7b28390df
Added upsert_one method on BaseQuerySet and modified test_upsert_one
2015-11-24 12:46:38 +00:00
Omer Katz
07e666345d
Merge pull request #1165 from touilleMan/bug-1164
...
Add SaveConditionError to __all__
2015-11-24 07:04:54 +02:00
Omer Katz
007f10d29d
Merge pull request #1161 from AWhetter/docFix
...
Fixed a couple of documentation typos
2015-11-24 07:01:49 +02:00
Stefan Wojcik
54975de0f3
fix read_preference for PyMongo 3+
2015-11-23 10:46:52 -08:00
Stefan Wojcik
a7aead5138
re-create the cursor object whenever we apply read_preference
2015-11-23 10:46:52 -08:00
Omer Katz
6868f66f24
Merge pull request #1155 from AWhetter/fix837
...
ReferenceFields can now reference abstract Document types
2015-11-23 15:52:54 +02:00
Omer Katz
3327388f1f
Merge pull request #1122 from larsbutler/improve-reverse_delete_rule-docs
...
fields.ReferenceField: add integer values to `reverse_delete_rule` docs
2015-11-23 15:29:20 +02:00
Ashley Whetter
04497aec36
Fixed setting dbref to True on abstract reference fields causing the reference to be stored incorrectly
2015-11-23 13:21:30 +00:00
Ashley Whetter
aa9d596930
Updated documentation for abstract reference changes
2015-11-23 13:21:30 +00:00
Ashley Whetter
f96e68cd11
Made type inheritance a validation check for abstract references
2015-11-23 13:20:35 +00:00
Ashley Whetter
013227323d
ReferenceFields can now reference abstract Document types
...
A class that inherits from an abstract Document type is stored in the database
as a reference with a 'cls' field that is the class name of the document being
stored.
Fixes #837
2015-11-23 13:20:35 +00:00
Omer Katz
c0e7f341cb
Merge pull request #1129 from illico/feature/arbitrary-metadata
...
Indirection-free optimized field metadata.
2015-11-23 12:49:48 +02:00
Emmanuel Leblond
0a1ba7c434
Add SaveConditionError to __all__
2015-11-21 10:25:11 +01:00
George Macon
deb5677a57
Allow shard key to be in an embedded document ( #551 )
2015-11-19 17:14:45 -05:00
Omer Katz
5c464c3f5a
Bumped version to 0.10.1
2015-11-18 14:07:39 +02:00
Ashley Whetter
cceef33fef
Fixed a couple of documentation typos
2015-11-17 14:22:10 +00:00
Paul-Armand Verhaegen
6e745e9882
fixed wrong indentation style
2015-11-10 21:13:24 +01:00
Paul-Armand Verhaegen
fb4e9c3772
fix for reloading of strict with special fields
2015-11-10 20:43:49 +01:00
Omer Katz
d92d41cb05
Merge pull request #1131 from noirbizarre/fix-instance-back-references
...
Fix instance back references
2015-11-08 12:14:37 +02:00
abonhomme
44f92d4169
docstring correction
...
Corrected the docstring for `mongoengine.queryset.base.update_one()`
2015-10-23 11:07:26 -04:00
Axel Haustant
6399de0b51
Fix _instance on list of EmbeddedDocuments
2015-10-19 16:39:00 +02:00
reallistic
159b082828
Recursively create mongo query for embeddeddocument elemMatch
2015-10-18 16:34:24 -07:00
Alice Bevan–McGregor
50b271c868
Arbitrary metadata documentation.
2015-10-13 22:51:03 -04:00
Alice Bevan–McGregor
a57f28ac83
Correction for local monkeypatch.
2015-10-13 22:41:58 -04:00
Alice Bevan–McGregor
3f3747a2fe
Minor formatting tweaks and additional comments.
2015-10-13 21:59:46 -04:00
Alice Bevan–McGregor
d133913c3d
Remove now superfluous special cases.
...
Removes `verbose_name`, `help_text`, and `custom_data`. All three are
covered by the one metadata assignment and will continue working as
expected.
2015-10-13 21:59:29 -04:00
Alice Bevan–McGregor
e049cef00a
Add arbitrary metadata capture to BaseField
.
...
Includes ability to detect and report conflicts.
2015-10-13 21:54:58 -04:00
Gang Li
eb8176971c
Removed "elif field.default" block to avoid silently, inconsistently changing database
...
This resolved issue Please recall fix on: Saving document doesn't create new fields in existing collection #620 #1126
2015-10-12 23:33:54 -04:00
Gang Li
5bbfca45fa
Fixed: ListField minus index assignment does not work #1119
...
Add code to detect '-1' as a integer.
Normalize negative index to regular list index
Added list assignment test case
2015-10-12 10:34:26 -04:00
David Bordeynik
d4f6ef4f1b
Merge pull request #1113 from DavidBord/fix-1105
...
fix-#1105: StrictDict & SemiStrictDict are shadowed at init time
2015-10-11 21:14:05 +03:00
Kirill Kuzminykh
11024deaae
Fixed detection of shared connections
2015-10-05 22:40:44 +03:00
Lars Butler
5a038de1d5
fields.ReferenceField: add integer values to reverse_delete_rule
docs
...
When I first tried to use the `reverse_delete_rule` feature of
`ReferenceField`, I had to dig through the source code to find what the
actual integer values were expected to be for DO_NOTHING, NULLIFY,
CASCADE, DENY, and PULL (or at least, where these constants were defined
so that I could import and use them). This patch adds the integer values
for those constants (which are defined in mongoengine.queryset.base) to
the docs so that users can easily choose the correct integer value.
Note: A possible improvement on this change would be to include
`mongoengine.queryset.base` module documentation in the generated docs,
and then update the `ReferenceField` docs to link to the documentation
of these constants (DO_NOTHING, NULLIFY, etc.).
2015-10-05 14:37:03 +02:00
Emmanuel Leblond
903982e896
Merge pull request #1088 from touilleMan/bug-1058
...
Fix DictField with '_cls' field is converted to Document on access
2015-09-21 12:10:23 +02:00
David Bordeynik
6355c404cc
fix-#1105: StrictDict & SemiStrictDict are shadowed at init time
2015-09-16 20:27:52 +03:00
Catstyle
a6a1021521
use obj._data instead of self._fields_ordered since DynamicDocument missing some attributes
2015-09-02 18:42:30 +02:00
Emmanuel Leblond
6cf630c74a
Merge pull request #1096 from vasion/save-condition-for-2.4
...
save_condition uses "n" instead of "nModified"
2015-09-02 18:23:37 +02:00
Emmanuel Leblond
736fe5b84e
Fix unwanted dereference in DictField (issue #1058 )
2015-08-30 10:01:24 +02:00
Omer Katz
4241bde6ea
Merge pull request #1055 from zxhuang/master
...
comply to pymongo MongoClient constructor host
2015-08-16 11:52:27 +03:00
Momchil Rogelov
b4ce14d744
use n instead of nModified in save_condition
2015-08-13 10:11:42 +01:00
Momchil Rogelov
10832a2ccc
save_condition falls back to "n" if "nModified" is not found to support mongo 2.4
2015-08-12 10:57:20 +01:00
Emmanuel Leblond
91aca44f67
Merge pull request #1093 from touilleMan/bug-1069
...
Replace disconnect with close method in pymongo
2015-08-10 18:40:59 +02:00
Emmanuel Leblond
96cfbb201a
Replace use close method in pymongo
2015-08-04 18:02:57 +02:00
Emmanuel Leblond
0752c6b24f
Update changelog for #1070
2015-07-19 10:33:54 +02:00