David Bordeynik
94eac1e79d
Merge pull request #946 from MRigal/fix/pymongo3-connection
...
fixes #946
2015-05-11 15:51:51 +03:00
Matthieu Rigal
794101691c
removed wire_concern usage and cosmetics
2015-05-07 19:34:31 +02:00
Eli Boyarski
73f0867061
Unit Test - Unique Multikey Index
...
Adds a unit test to exhibit the behavior of MongoDB when using a unique
multikey index. MongoDB treats any missing unique multikey index value
as NULL, thus throwing a Duplicate Key Error when saving multiple
missing values.
See #930 for more information.
- Closes #930
- Closes #952
2015-05-07 11:16:47 -04:00
Matthieu Rigal
f97db93212
corrected test for MongoDB 2.X
2015-05-07 12:48:25 +02:00
Matthieu Rigal
c41dd6495d
corrected connection test for PyMongo3+
2015-05-07 12:47:31 +02:00
Matthieu Rigal
1005c99e9c
corrected index test for MongoDB 3+
2015-05-07 12:47:31 +02:00
Matthieu Rigal
f4478fc762
removed sleep thanks to @seglberg suggestion
2015-05-07 12:47:31 +02:00
mrigal
c5ed308ea5
comments update after having tested PyMongo 3.0.1
2015-05-07 12:47:31 +02:00
mrigal
9b2fde962c
added try except to geo test to catch random mongo internal errors
2015-05-07 12:47:30 +02:00
mrigal
571a7dc42d
Fix last issue with binary field as primary key and skipped new test
2015-05-07 12:47:30 +02:00
mrigal
3421fffa9b
reactivated unnecessarily skipped test
2015-05-07 12:47:30 +02:00
mrigal
76adb13a64
Minor text and comments enhancements
2015-05-07 12:47:30 +02:00
mrigal
c44891a1a8
changed unittest to call for compatibility with Python 2.6
2015-05-07 12:47:30 +02:00
mrigal
f31f52ff1c
corrected test condition, depending on mongodb and not pymongo version
2015-05-07 12:47:30 +02:00
mrigal
a5c2fc4f9d
reinforced test for BinaryField being a Primary Key
2015-05-07 12:47:30 +02:00
mrigal
e80322021a
corrected and enhanced geo_index test
2015-05-07 12:47:29 +02:00
mrigal
48316ba60d
implemented global IS_PYMONGO_3
2015-05-07 12:47:29 +02:00
mrigal
ccbd128fa2
first adaptations after comments and find-outs
2015-05-07 12:47:29 +02:00
mrigal
36eedc987c
adapted index test to new explain output in pymongo3 and added comment to a possible pymongo3 bug
2015-05-07 12:47:29 +02:00
mrigal
3b8f31c888
fix problems with cursor arguments
2015-05-07 12:47:29 +02:00
mrigal
a34fa74eaa
fix connection problems with pymongo3 and added tests
2015-05-07 12:47:29 +02:00
Eremeev Danil
aab0599280
test moved to another file, cosmetical fixes
2015-05-07 10:55:35 +05:00
Eremeev Danil
dfa8eaf24e
Added changeset, updated documentation and tests, changed test condition
2015-05-07 10:55:35 +05:00
Eremeev Danil
63d55cb797
solution for #949
2015-05-07 10:54:16 +05:00
rma4ok
0949df014b
[fix] SortedListField: update whole list if order is changed
2015-05-06 09:40:08 -04:00
Matthew Ellison
01f4dd8f97
Merge pull request #989
2015-05-06 09:38:26 -04:00
Stefan Wojcik
9bdc320cf8
dont send a "cls" option to ensureIndex (related to https://jira.mongodb.org/browse/SERVER-769 )
2015-05-06 11:25:45 +02:00
Gregor Kališnik
4b8344082f
Testing if we can query embedded document's field inside MapField. Part of #912 , which is fixed in 0.9.
2015-05-05 12:49:45 +02: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
06e4ed1bb4
Merge pull request #976 from seglberg/bugfix/#954-ref-field-subclass
...
Reflect Inheritance in Field's 'owner_document'
2015-04-30 09:22:15 -04:00
Eremeev Danil
a4f2f811d3
removed forgotten print
2015-04-30 09:33:19 +05:00
Eremeev Danil
ebaba95eb3
fixed same bug for nested List inside MapField, little code refactoring, added test for nested list and nested reference fields
2015-04-30 09:33:19 +05:00
elephant
7726be94be
fixed wrong _delta results on nested MapFields #931
2015-04-30 09:33:18 +05:00
Matthew Ellison
f2cbcea6d7
Unit Tests for #954 Fail on Exception, not Error
2015-04-29 14:26:05 -04: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
Sridhar Sundarraman
319f1deceb
Unit Test to Demonstrate #954
2015-04-29 14:23:57 -04:00
Omer Katz
3f14958741
Merge pull request #957 from noirbizarre/metastrict
...
Allow to loads undeclared field with meta attribute (fix #934 )
2015-04-29 19:32:26 +03:00
Matthew Ellison
dfc9dc713c
Merge pull request #973 from seglberg/feature/#958-django-split
...
Removed Django Support from MongoEngine
+1 @thedrow @MRigal @DavidBord @rozza
2015-04-28 10:37:22 -04:00
RussellLuo
b847bc0aba
Make test_connect_uri_with_authsource
to focus on the key point
2015-04-25 10:22:24 +08:00
RussellLuo
6eb0bc50e2
Add a test for "authSource" feature
2015-04-25 08:01:24 +08:00
Matthew Ellison
7530f03bf6
Removed Django Support from MongoEngine
...
Django support has now been split out of MongoEngine and will be
revisted as a new but separate module.
Closes #958
2015-04-24 13:50:26 -04:00
Jimmy Shen
2ffdbc7fc0
fixed microsecond-level ordering/filtering bug with ComplexDateTimeField as well as unused separator option
2015-04-19 03:26:14 -04:00
Axel Haustant
52c7b68cc3
Restore Py26 compatibility on assertRaises
2015-04-13 22:28:58 +02: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