Stefan Wójcik
835d3c3d18
Improve the health of this package ( #1428 )
2016-12-11 18:49:21 -05:00
Ollie Ford
d8d98b6143
Support Falsey primary_key
s ( #1354 )
2016-12-03 16:10:05 -05:00
iici-gli
e5b6a12977
Merge pull request #1 from MongoEngine/master
...
pull new changes from original
2016-09-04 23:43:04 -04:00
Bastien Gérard
df9ed835ca
fixes in unit tests
2016-07-02 23:01:36 +02:00
Shu Shen
3f30808104
Fix AttributeError when creating EmbeddedDocument
...
When an EmbeddedDocument is initialized with positional arguments, the
document attempts to read _auto_id_field attribute which may not exist
and would throw an AttributeError exception and fail the initialization.
This change and the test is based on the discussion in issue #681 and
PR #777 with a number of community members.
2016-04-07 15:18:33 -07:00
Emmanuel Leblond
a643933d16
Fix cascade delete mixing among collections
2016-01-30 11:59:55 +01:00
Bryan Bennett
6c9e1799c7
MongoEngine/mongoengine #1217 : Curry **kwargs through to_mongo on fields
2016-01-26 08:34:52 -05:00
Emmanuel Leblond
0284975f3f
Correct test_reload_of_non_strict_with_special_field_name for pymongo<2.9
2016-01-19 15:34:38 +01:00
Paul-Armand Verhaegen
6133f04841
Manual merge conflicts in AUTHORS
2015-11-27 23:55:55 +01:00
Paul-Armand Verhaegen
3c18f79ea4
Added test for reloading of strict with special fields #1156
2015-11-27 23:45:25 +01:00
George Macon
deb5677a57
Allow shard key to be in an embedded document ( #551 )
2015-11-19 17:14:45 -05:00
Axel Haustant
9fe99979fe
Fix tests on Python 2.6 (assertIsNotNone does not exists)
2015-10-19 18:04:15 +02:00
Axel Haustant
959740a585
Fix false positive test on _instance
2015-10-19 16:33:40 +02:00
Gang Li
3fe93968a6
update test case for: Please recall fix on: Saving document doesn't create new fields in existing collection #620 #1126
2015-10-18 00:19:36 -04:00
Emmanuel Leblond
3ffaf2c0e1
Correct SaveConditionError involved tests
2015-07-15 11:59:29 +02:00
Matthieu Rigal
0aeb1ca408
Various fixes again
2015-06-24 00:50:36 +02:00
Matthieu Rigal
2a3d3de0b2
CappedCollection max_size normalized to multiple of 256
2015-06-15 00:22:07 +02:00
Emmanuel Leblond
153c239c9b
Replace assertRaisesRegexp by assertRaises (python2.6 compatibility)
2015-06-11 14:36:51 +02:00
Emmanuel Leblond
4034ab4182
Clean save_condition exception implementation and related tests
2015-06-11 14:30:10 +02:00
Emmanuel Leblond
3e000f9be1
Raise error if save_condition fails #991
2015-06-11 14:29:42 +02:00
Axel Haustant
52c7b68cc3
Restore Py26 compatibility on assertRaises
2015-04-13 22:28:58 +02:00
Axel Haustant
cd2d9517a0
Added 'strict' meta parameter
2015-04-13 17:49:08 +02: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
Jimmy Shen
ce9d0d7e82
Fix #864 : ComplexDateTimeField should fall back to None when null=True
2015-02-19 09:47:38 +02:00
Rik
913952ffe1
remove unittest test_no_overwritting_no_data_loss
...
Now that fields need to be defined explicitly, it's not possible to have
another property with the same name on a model.
https://github.com/MongoEngine/mongoengine/pull/457#issuecomment-47513105
2014-11-29 23:20:30 -02:00
Yohan Graterol
a12b2de74a
Fix merge MongoEngine/mongoengine#799
2014-11-09 21:31:56 -05:00
Yohan Graterol
5583cf0a5f
PEP8 compliance tests/document/instance.py
2014-11-09 21:27:23 -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
Dmitry Konishchev
bc9aff8c60
Merge remote-tracking branch 'upstream/master' into pr-document-modify
2014-11-02 17:24:51 +03:00
David Czarnecki
4b498ae8cd
Fix the documentation for reverse_delete_rule.
2014-10-31 11:40:20 -04:00
Dmitry Konishchev
5d2ca6493d
Drop unnecessary id=ObjectId() in document creation
2014-10-01 12:38:41 +04:00
Dmitry Konishchev
4752f9aa37
Add Document.modify() method
2014-09-30 15:30:01 +04:00
Vjacheslav Murashkin
7430b31697
handle None from model __str__; Fixes #753
2014-09-04 16:54:23 +04:00
DavidBord
9b30afeca9
fix-#397: Allow specifying the '_cls' as a field for indexes
2014-08-24 10:51:49 +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
Bruno Rocha
99e943c365
Updates with no operator should default to $set Fix #667
2014-07-02 14:39:29 -03:00
Ross Lawley
5d0cab2052
Merge branch 'master' into pr/539
...
Conflicts:
mongoengine/base/datastructures.py
2014-06-27 12:20:44 +01:00
Ross Lawley
324e3972a6
Merge pull request #567 from tomprimozic/master
...
Implemented equality between Documents and DBRefs
2014-06-27 11:37:24 +01:00
Ross Lawley
de9ba12779
Turn on tests
2014-06-27 11:16:23 +01:00
Ross Lawley
9cc4359c04
Added the ability to reload specific document fields #100
2014-06-27 11:10:14 +01:00
Ross Lawley
8267ded7ec
Merge branch 'master' into pr/636
2014-06-27 09:29:19 +01:00
Ross Lawley
5b90691bcc
Merge branch 'master' into pr/585
2014-06-26 16:41:27 +01:00
Ross Lawley
dd51589f67
Updates
2014-06-26 16:02:40 +01:00
Yohan Graterol
a70dbac0e6
Merge pull request #626 from KonishchevDmitry/pr-not-unique-error-on-update
...
Raise NotUniqueError in Document.update() on pymongo.errors.DuplicateKeyError
2014-06-25 10:18:09 -05:00