Vicky Donchenko
6bd9529a66
Allow to add custom metadata to fields
2015-06-23 16:25:56 +03:00
Matthieu Rigal
5c807f3dc8
Various test adjustments to improve stability independantly of execution order
2015-06-22 16:41:36 +02:00
Matthieu Rigal
40f6df7160
Adapted one more test for MongoDB < 3
2015-06-22 14:57:59 +02:00
Matthieu Rigal
95165aa92f
Logic and test adaptations for MongoDB < 3
2015-06-22 14:57:59 +02:00
Matthieu Rigal
d96fcdb35c
Fixed problem of ordering when using near_sphere operator
2015-06-22 14:57:58 +02:00
Matthieu Rigal
5efabdcea3
Added tests, documentation and simplified code
2015-06-22 14:57:58 +02:00
Matthieu Rigal
49c0c9f44c
Simplified lookup-field method, allowing dynamic lookup for more than two parts
2015-06-22 14:55:06 +02:00
Matthieu Rigal
ef5fa4d062
Merge pull request #1037 from MRigal/fix/1008-delete-returns-none-allowed
...
Added test and fix for delete with write_concern w:0
2015-06-22 14:50:04 +02:00
Matthieu Rigal
d0b749a43c
Made test explicit with an assert
2015-06-21 13:02:59 +02:00
Matthieu Rigal
bcc4d4e8c6
Added test and fix for delete with write_concern w:0
2015-06-21 03:40:45 +02:00
Breeze.kay
41bff0b293
remove testcase:test_signals_with_switch_sharding_db() and fix code style error for pull#1020
2015-06-21 09:32:31 +08:00
Breeze.kay
dfc7f35ef1
add testcase and changelog for pull:#1020 'improve _created status when switch collection and db'
2015-06-19 15:40:05 +08:00
Stefan Wojcik
dd095279c8
aggregate_sum/average + unit tests
2015-06-18 11:01:37 -07:00
Matthieu Rigal
2a3d3de0b2
CappedCollection max_size normalized to multiple of 256
2015-06-15 00:22:07 +02:00
Matthieu Rigal
b124836f3a
Merge pull request #936 from MRigal/fix/712-avoid-crash-looping-on-corrupted-obj-id
...
changed ObjectIdField to_python() method to avoid crash, issue 712
2015-06-14 23:31:22 +02:00
Matthieu Rigal
7714cca599
Removed get_or_create() method, deprecated since 0.8
2015-06-12 20:51:59 +02:00
Matthieu Rigal
42511aa9cf
Merge pull request #1028 from MRigal/fix/652-url-field-validation-too-restrictive-use-django-validation
...
Updated URL and Email regex validators, added schemes to url validator
2015-06-12 20:47:58 +02:00
Matthieu Rigal
ace2a2f3d1
Merge pull request #1027 from MRigal/fix/530-combining-only-and-save-deletes-embedded-fields-value-with-default
...
Added passing test to prove save and only problem was fixed
2015-06-12 20:40:51 +02:00
Matthieu Rigal
4c1496b4a4
Updated URL and Email field regex validators, added schemes arg to urlfield
2015-06-12 13:10:36 +02:00
Matthieu Rigal
eec876295d
Added passing test to prove save and only problem was fixed
2015-06-12 12:13:28 +02:00
Matthieu Rigal
3093175f54
SequenceField for abstract classes now have a proper name
2015-06-12 11:03:52 +02:00
Matthieu Rigal
dd05c4d34a
Merge pull request #1024 from touilleMan/issue-1017
...
Fix #1017 (document clash between same ids but different collections)
2015-06-12 09:24:32 +02:00
Matthieu Rigal
57e3a40321
Merge pull request #1025 from MRigal/feature/259-improve-error-detection-for-invalid-query
...
Improve error message for invalid query
2015-06-12 09:13:18 +02:00
Matthieu Rigal
915849b2ce
Implemented method to auto-generate non-collisioning auto_id names
2015-06-11 22:48:34 +02:00
mrigal
051cd744ad
added another test to proove we still do not handle all cases well
2015-06-11 22:47:10 +02:00
mrigal
53fbc165ba
added content of PR #688 with a test to proove it is a bit right
2015-06-11 22:47:10 +02:00
mrigal
1862bcf867
added test for abstract document without pk creation and adapted behaviour
2015-06-11 22:47:10 +02:00
Matthieu Rigal
a2f0f20284
Improve error message for invalid query
2015-06-11 17:48:34 +02:00
Emmanuel Leblond
1951b52aa5
Fix #1017 (document clash between same ids but different collections)
2015-06-11 14:55:04 +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
Matthieu Rigal
548a552638
Merge pull request #994 from MRigal/fix/cls-index-at-desired-position
...
Added hashed index, a bit more of geo-indexes, possibility to give _cls
2015-06-11 14:20:01 +02:00
Matthieu Rigal
1d5b5b7d15
Merge pull request #1018 from MRigal/fix/517-no_dereference-not-respected-on-embedded-docs
...
Respect no_dereference() on embedded docs containing Ref
2015-06-11 14:16:11 +02:00
Matthieu Rigal
6d3bc43ef6
Merge pull request #1000 from ProgressivePlanning/test_update_related
...
added passing test for updates on related models
2015-06-04 19:18:11 +02:00
Marcel van den Elst
0f63e26641
use AssertEqual instead of AssertListEqual for py2.6 compatibility
2015-06-04 15:02:32 +02:00
Matthieu Rigal
621350515e
Added test was still failing and implemented solution as described in #517
2015-06-03 01:02:19 +02:00
Charanpal Dhanjal
ad81470d35
Put space after hash
2015-06-02 10:17:17 +01:00
Matthieu Rigal
a0257ed7e7
Updated test to use new create_index method
2015-06-02 00:14:18 +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
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
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
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