Hiroyasu OHYAMA
d8b238d5f1
Refactored the implementation of DynamicField extension for storing data in order
2017-04-06 00:42:11 +00:00
Hiroyasu OHYAMA
ffbb2c9689
This is Additional tests for the container_class parameter of DynamicField
...
This tests DynamicField dereference with ordering guarantee.
2017-03-08 14:46:04 +00:00
Hiroyasu OHYAMA
9cd3dcdebf
Added a test for the change of the condition in DeReference processing
...
This checks DBRef conversion using DynamicField with the ordering
guarantee.
2017-03-08 14:45:43 +00:00
Hiroyasu OHYAMA
f2fe58c3c5
Added a condition to store data to ObjectDict when the items type is it
...
Previous dereference implementation re-contains data as `dict` except
for the predicted type.
But the OrderedDict is not predicted, so the its data would be converted
`dict` implicitly.
As the result, the order of stored data get wrong. And this patch
prevents it.
2017-03-08 14:35:50 +00:00
Hiroyasu OHYAMA
6aaf9ba470
removed a checking of dict order because this order is not cared (some implementation might be in ordered, but other one is not)
2017-03-01 09:32:28 +00:00
Hiroyasu OHYAMA
5957dc72eb
To achive storing object data in order with minimum implementation, I
...
changed followings.
- added optional parameter `container_class` which enables to choose
intermediate class at encoding Python data, instead of additional
field class.
- removed OrderedDocument class because the equivalent feature could
be implemented by the outside of Mongoengine.
2017-03-01 09:20:57 +00:00
Hiroyasu OHYAMA
e32a9777d7
added test for OrderedDynamicField and OrderedDocument
2017-02-28 03:35:53 +00:00
Hiroyasu OHYAMA
84a8f1eb2b
added OrderedDocument class to decode BSON data to OrderedDict for retrieving data in order
2017-02-28 03:35:39 +00:00
Hiroyasu OHYAMA
6810953014
added OrderedDynamicField class to store data in the defined order because of #203
2017-02-28 03:34:42 +00:00
Stefan Wójcik
5f43c032f2
revamp the "connecting" user guide and test more ways of connecting to a replica set ( #1490 )
2017-02-26 21:29:06 -05:00
Stefan Wojcik
627cf90de0
tutorial tweaks: better copy + use py3-friendly syntax
2017-02-26 20:30:37 -05:00
Omer Katz
2bedb36d7f
Test against multiple MongoDB versions in Travis ( #1074 )
2017-02-26 14:52:43 -05:00
Stefan Wójcik
e93a95d0cb
Test and document controlling the size of the connection pool ( #1489 )
2017-02-25 14:09:10 -05:00
Stefan Wójcik
3f31666796
Fix the exception message when validating unicode URLs ( #1486 )
2017-02-24 16:18:34 -05:00
Stefan Wojcik
3fe8031cf3
fix EmbeddedDocumentListFieldTestCase
2017-02-22 12:44:05 -05:00
bagerard
b27c7ce11b
allow to use sets in field choices ( #1482 )
2017-02-15 08:51:47 -05:00
Stefan Wojcik
ed34c2ca68
update the changelog and upgrade docs
2017-02-09 12:13:56 -08:00
Stefan Wójcik
3ca2e953fb
Fix limit/skip/hint/batch_size chaining ( #1476 )
2017-02-09 12:02:46 -08:00
martin sereinig
d8a7328365
Fix docs regarding reverse_delete_rule and delete signals ( #1473 )
2017-02-06 14:11:42 -07:00
Stefan Wojcik
f33cd625bf
nicer readme
2017-01-17 02:47:45 -05:00
Stefan Wojcik
80530bb13c
nicer readme
2017-01-17 02:46:37 -05:00
Stefan Wójcik
affc12df4b
Update README.rst
2017-01-17 02:43:29 -05:00
Stefan Wojcik
4eedf00025
nicer readme note about dependencies
2017-01-17 02:42:23 -05:00
Eli Boyarski
e5acbcc0dd
Improved a docstring for FieldDoesNotExist ( #1466 )
2017-01-09 11:24:27 -05:00
Stefan Wojcik
1b6743ee53
add a changelog entry about broken references raising DoesNotExist
2017-01-08 14:50:16 -05:00
Eli Boyarski
b5fb82d95d
Typo fix ( #1463 )
2017-01-08 12:57:36 -05:00
lanf0n
193aa4e1f2
[ #1459 ] fix typo __neq__
to __ne__
( #1461 )
2017-01-05 22:37:09 -05:00
Stefan Wójcik
ebd34427c7
Cleaner Document.save ( #1458 )
2016-12-30 05:43:56 -05:00
Stefan Wójcik
3d75573889
Validate db_field ( #1448 )
2016-12-29 12:39:05 -05:00
Stefan Wójcik
c6240ca415
Test connection's write concern ( #1456 )
2016-12-29 12:37:38 -05:00
Stefan Wójcik
2ee8984b44
add a $rename operator ( #1454 )
2016-12-28 23:25:38 -05:00
Stefan Wojcik
b7ec587e5b
better docstring for BaseDocument.to_json
2016-12-28 22:15:46 -05:00
Stefan Wojcik
47c58bce2b
fix "connect" example in the docs
2016-12-28 21:08:18 -05:00
Stefan Wojcik
96e95ac533
minor readme tweaks
2016-12-28 17:18:55 -05:00
Stefan Wojcik
b013a065f7
remove readme mention of the irc channel
2016-12-28 11:50:28 -05:00
Stefan Wojcik
74b37d11cf
only validate db_field if it's a string type
2016-12-28 11:46:18 -05:00
Stefan Wójcik
c6cc013617
fix BaseQuerySet.fields when mixing exclusion/inclusion with complex values like $slice ( #1452 )
2016-12-28 11:40:57 -05:00
Stefan Wójcik
f4e1d80a87
support a negative dec operator ( #1450 )
2016-12-28 02:04:49 -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
Stefan Wojcik
e07cb82c15
validate db_field
2016-12-27 17:38:26 -05:00
Stefan Wojcik
2770cec187
better docstring for BaseQuerySet.fields
2016-12-27 10:20:13 -05:00
Stefan Wojcik
5c3928190a
fix line width
2016-12-22 13:20:05 -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 Wojcik
96d20756ca
remove redundant whitespace
2016-12-22 13:13:19 -05:00
John Dupuy
b8454c7f5b
Fixed ListField deletion bug ( #1435 )
2016-12-22 13:11:44 -05:00
George Karakostas
c84f703f92
Update documentation to include a Q import ( #1441 )
2016-12-22 13:06:55 -05:00
Manuel Jeckelmann
57c2e867d8
Remove py26 from contributing docs ( #1439 )
...
Python 2.6 is not supported anymore with version 0.11.0
2016-12-19 17:54:43 -05:00
Stefan Wojcik
553f496d84
fix tests
2016-12-13 00:42:03 -05:00
Stefan Wojcik
b1d8aca46a
update the changelog
2016-12-12 23:33:49 -05:00
Stefan Wojcik
8e884fd3ea
make the __in=non_iterable_or_doc tests more concise
2016-12-12 23:30:38 -05:00