Trevor Hall
352b23331b
Fix bug #1965 of $position and $push operators do not work with list in an EmbeddedDocument. Set key value to joined parts excluding the index at the end. Added test case
2018-12-05 20:18:48 -06:00
Bastien Gérard
e31558318e
BugFix - _cls not set in constructor #1950
2018-11-13 20:52:39 +01:00
Bastien Gérard
26e2fc8fd4
Merge pull request #1887 from bagerard/fix_changed_fields_issue_same_id_in_nested_doc2
...
Fix bug where an EmbeddedDocument with the same id as its parent would not be tracked for changes
2018-11-01 22:49:07 +01:00
erdenezul
b0148e7860
Merge pull request #1921 from bagerard/error_referencefield_of_abstract_classes
...
Fix a bug when using a ReferenceField(AbstractClass)
2018-10-16 07:55:52 +08:00
Bastien Gérard
59a06a242d
Fix a bug when using a ReferenceField(AbstractClass) #1920
2018-10-15 22:32:11 +02:00
erdenezul
ffe902605d
Merge pull request #1918 from bagerard/improve_error_cant_subclass_document
...
Improve the error message that mentions that Document cant be subclassed
2018-10-15 11:18:13 +08:00
Bastien Gérard
556f7e85fc
Improve the error message that mentions that Document cant be subclassed
2018-10-10 23:13:34 +02:00
Bastien Gérard
9b6c972e0f
renamed decorator needs_mongodb_x in test + fixes ref to mongo 2.4 from travis files
2018-10-02 22:03:55 +02:00
Bastien Gérard
96f0919633
- Fixed tests to allow support of MongoDB 3.2
...
- Replaced MongoDB 2.4 tests in CI by MongoDB 3.2
2018-09-30 21:59:15 +02:00
Bastien Gérard
4314fa883f
improve 2-3 codebase compatibility
2018-09-09 23:32:10 +02:00
Bastien Gérard
f89214f9cf
Fixes bug where an EmbeddedDocument that shares the same id of its parent Document could be missing updates when .save was called
...
Fixes #1768 , Fixes #1685
2018-09-09 10:40:51 +02:00
Bastien Gérard
003827e916
rewrote some poorly written assertions like: assertTrue(isinstance(a, b)) assertTrue(a==b) assertTrue(a!=b) assertTrue(a in b)
2018-09-06 21:47:06 +02:00
erdenezul
7e90571404
Merge pull request #1858 from bagerard/fix_index_creation_error_swallowed
...
Fix index creation error that was swallowed by hasattr under python2
2018-08-30 21:28:38 +08:00
Bastien Gérard
b4860de34d
Fix index creation error that was swallowed by hasattr under python2 ( #1688 )
2018-08-30 10:39:07 +02:00
Bastien Gérard
86548fc7bf
Document the attribute of .from_json
2018-08-28 22:42:51 +02:00
Erdenezul
290b821a3a
add fix for reload(fields) affect changed fields #1371
2018-05-21 16:06:04 +08:00
Erdenezul Batmunkh
e50d66b303
skip mongodb 2.4
2018-05-20 11:26:30 +08:00
Erdenezul Batmunkh
08b6433843
fix compare_indexes for text indexes #1751
2018-05-20 11:03:13 +08:00
Thomas Erker
a34fd9ac89
Add testcase for #1751
2018-03-08 11:25:36 +00:00
erdenezul
7cc1d23bc7
Merge pull request #1655 from werat/fix_update_pull_in
...
Fix pull+in update queries
2018-02-21 13:36:04 +08:00
Andy Yankovsky
0bd2103a8c
Add test for document update
2018-02-20 00:02:12 +03:00
erdenezul
da7d64667e
Merge pull request #1571 from erdenezul/reverse_delete_rule_with_pull
...
add test case for reverse_delete_rule with pull #1519
2017-12-23 11:32:09 +08:00
Erdenezul
9ab856e186
use each modifier only with #1673
2017-10-10 10:34:34 +08:00
Erdenezul Batmunkh
3dcc9bc143
use explicit tests and fix unneccessary indent #1565
2017-07-13 22:59:21 +08:00
Erdenezul Batmunkh
71c3c632d7
add test case for reverse_delete_rule with pull #1519
2017-06-19 06:01:28 +00:00
Erdenezul Batmunkh
7782aa7379
do not test position push in mongodb_v2.4 #1565
2017-06-19 03:11:59 +00:00
Erdenezul Batmunkh
f3ee4a5dac
add tests for push operator #1565
2017-06-19 02:59:17 +00:00
Stefan Wójcik
03ff61d113
better db_field validation ( #1547 )
2017-05-07 21:11:14 -04:00
Stefan Wójcik
1a3c70ce1b
make EmbeddedDocument not hashable by default ( #1528 )
2017-04-30 13:30:21 -04:00
Stefan Wójcik
466935e9a3
Unicode support in EmailField ( #1527 )
2017-04-16 13:58:58 -04:00
Stefan Wojcik
30e8b8186f
clean up document instance tests
2017-03-02 00:25:56 -05:00
Ephraim Berkovitch
398964945a
Document.objects.create should raise NotUniqueError upon saving duplicate primary key ( #1485 )
2017-02-27 09:42:44 -05:00
Omer Katz
2bedb36d7f
Test against multiple MongoDB versions in Travis ( #1074 )
2017-02-26 14:52:43 -05:00
Stefan Wójcik
2ee8984b44
add a $rename operator ( #1454 )
2016-12-28 23:25:38 -05:00
Stefan Wójcik
91dad4060f
raise an error when trying to save an abstract document ( #1449 )
2016-12-28 00:51:47 -05:00
Manuel Jeckelmann
9f4b04ea0f
Fix querying an embedded document field by an invalid value ( #1440 )
2016-12-22 13:19:18 -05:00
Stefan Wójcik
835d3c3d18
Improve the health of this package ( #1428 )
2016-12-11 18:49:21 -05:00
Stefan Wójcik
800f656dcf
remove unnecessary randomness in indexes tests ( #1423 )
2016-12-04 00:31:54 -05:00
Ollie Ford
d8d98b6143
Support Falsey primary_key
s ( #1354 )
2016-12-03 16:10:05 -05:00
Stefan Wójcik
3c455cf1c1
Improve health of this package ( #1409 )
...
* added flake8 and flake8-import-order to travis for py27
* fixed a test that fails from time to time depending on an order of a dict
* flake8 tweaks for the entire codebase excluding tests
2016-11-28 19:00:34 -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
Gilb's
e34100bab4
Another attempt to fix random fails of test test_compound_key_dictfield
.
2016-03-18 23:43:23 +01:00
Gilb's
39eec59c90
Fix test failing randomly because of concurrency.
2016-03-18 19:45:34 +01:00
Konstantin Gukov
ddedc1ee92
Fixed too broad exception clauses in the project
2016-02-23 23:50:45 +05: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
George Macon
00221e3410
Allow sparse compound indexes
2015-12-09 18:38:28 -05:00