2783 Commits

Author SHA1 Message Date
Matthieu Rigal
a0257ed7e7 Updated test to use new create_index method 2015-06-02 00:14:18 +02:00
Matthieu Rigal
4769487c3b Merge pull request #1012 from elin3t/patch-1
little object name fix in the readme
2015-06-01 23:46:36 +02:00
Matthieu Rigal
29def587ff Merge pull request #1004 from brunopgalvao/patch-1
spelling change definion to definition
2015-06-01 23:27:50 +02:00
Matthieu Rigal
f35d0b2b37 Added create_index method, warnings for drop_dups and a geohaystack test 2015-06-01 23:12:43 +02:00
Matthieu Rigal
283e92d55d Added hashed index, a bit more of geo-indexes, possibility to give _cls and docs 2015-06-01 22:11:21 +02:00
Eliecer Daza
c82b26d334 little object name fix
replace little object name HtmlPost with TextPost that is the one used on the example
2015-05-31 18:28:12 -05:00
Charanpal
2753e02cda Fix for case where Document is deleted and it's files (FieldFields) in GridFS remain. 2015-05-23 14:46:56 +01:00
Bruno Pierri Galvao
fde733c205 spelling change definion to definition 2015-05-21 10:22:02 -04:00
Marcel van den Elst
f730591f2c added passing test for updates on related models
ref #570: test would fail from v0.8.5 up, but fixed in master
2015-05-20 13:01:44 +02:00
David Bordeynik
94eac1e79d Merge pull request #946 from MRigal/fix/pymongo3-connection
fixes #946
2015-05-11 15:51:51 +03:00
Matthew Ellison
9f2b6d0ec6 Merge pull request #894 from MongoEngine/topic/not-in-style-issue
Code Cleanup
- Use not in instead of not (x in y)
2015-05-08 09:06:32 -04:00
Omer Katz
7d7d0ea001 Use not in instead of not (x in y). 2015-05-08 12:50:34 +03:00
Matthieu Rigal
794101691c removed wire_concern usage and cosmetics 2015-05-07 19:34:31 +02:00
Matthew Ellison
a443144a5c Merge pull request #995 from seglberg/PR/952-squash
Unit Test - Unique Multikey Index
2015-05-07 13:12:11 -04: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
d36708933c author and changelog 2015-05-07 12:48:25 +02:00
Matthieu Rigal
14f82ea0a9 enabled PYMONGO 3 and DEV for travis 2015-05-07 12:47:31 +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
3ab5ba6149 added explicit warnings when calling methods having no effect anymore with PyMongo3+ 2015-05-07 12:47:30 +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
c25619fd63 improved deprecation documentation and added warning when using snapshot with PyMongo3 2015-05-07 12:47:30 +02:00
mrigal
76adb13a64 Minor text and comments enhancements 2015-05-07 12:47:30 +02:00
mrigal
33b1eed361 corrected logical test for not Pymongo3 versions 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
6ad9a56bd9 corrected bad import preventing to run on PyMongo 2.X versions 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
0a65006bb4 replaced find_and_modify by PyMongo3 equivalents 2015-05-07 12:47:30 +02:00
mrigal
3db896c4e2 work-around for pymongo 3 bug 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
c0f1493473 fix revert situated at the wrong location 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
46817caa68 various unused imports removed (I am allergic) 2015-05-07 12:47:29 +02:00
mrigal
775c8624d4 change to try to address issues due to new save() behaviour, not satisfying, some tests are still failing 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
Matthieu Rigal
d6b2d8dcb5 Merge pull request #982 from elephanter/operator_name_in_field_name
Added __ support to escape field name in fields lookup keywords that match operators names
2015-05-07 11:47:12 +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
Matthieu Rigal
c642eee0d2 Merge pull request #992 from touilleMan/master
Add primary_key notice in defining-documents doc according to issue #985
2015-05-06 23:13:20 +02:00
Emmanuel Leblond
5f33d298d7 Fix typo in guide/defining-documents.rst 2015-05-06 21:32:36 +02:00