Stefan Wojcik
e124c95621
extra note in the docstring [ci skip]
2017-05-07 23:58:29 -04:00
Stefan Wojcik
5f1670ffa2
fix a unit test that fails from time to time
2017-05-07 23:46:08 -04:00
Stefan Wojcik
b09698e926
remove a print
2017-05-07 23:42:27 -04:00
Stefan Wojcik
d35d969b4e
add a test for a generic reference field along with only and as_pymongo
2017-05-07 23:39:35 -04:00
Stefan Wojcik
e751ab55c8
cleaner as_pymongo + drop coerce_types
2017-05-07 23:28:35 -04:00
Stefan Wojcik
33e9ef2106
dont test pypy3 temporarily
2017-05-07 21:37:38 -04:00
Stefan Wojcik
689fe4ed9a
Revert "use a newer pypy3 ( https://github.com/travis-ci/travis-ci/issues/6277 )"
...
This reverts commit 944d1c0a4ab817a9f0dcd124bbf8456520367e8b.
2017-05-07 21:37:14 -04:00
Stefan Wojcik
b82d026f39
Revert "fix tox.ini"
...
This reverts commit c00914bea2951d53a9b8021e3facf406e8d9109e.
2017-05-07 21:37:05 -04:00
Stefan Wojcik
009059def4
revert #1497
2017-05-07 21:29:13 -04:00
Stefan Wójcik
03ff61d113
better db_field validation ( #1547 )
2017-05-07 21:11:14 -04:00
Stefan Wojcik
c00914bea2
fix tox.ini
2017-05-07 20:32:52 -04:00
Stefan Wojcik
944d1c0a4a
use a newer pypy3 ( https://github.com/travis-ci/travis-ci/issues/6277 )
2017-05-07 19:54:58 -04:00
Stefan Wojcik
2cf23e33e3
Document._get_update_doc helper method
2017-05-07 19:26:10 -04:00
Stefan Wojcik
e2a0b42d03
clarify test_get_changed_fields_query_count
2017-04-30 18:29:22 -04:00
Stefan Wójcik
894e9818ac
use an external sphinx rtd theme ( #1541 )
...
Externalize Sphinx RTD theme
2017-04-30 15:38:21 -04:00
Stefan Wójcik
de18e256ce
clean up the Document._get_collection code ( #1540 )
2017-04-30 14:35:33 -04:00
Stefan Wójcik
1a3c70ce1b
make EmbeddedDocument not hashable by default ( #1528 )
2017-04-30 13:30:21 -04:00
Artemiy
bd4a603e16
Use De Morgan's laws to simplify an expression. ( #1531 )
2017-04-20 10:27:37 -04:00
Jason
358b80d782
Make the tutorial slightly more intuitive ( #1530 )
2017-04-20 09:11:38 -04:00
Stefan Wojcik
824ec42005
bump version to v0.13.0 and fill in the changelog and the upgrade docs
v0.13.0
2017-04-16 14:08:46 -04:00
Stefan Wójcik
466935e9a3
Unicode support in EmailField ( #1527 )
2017-04-16 13:58:58 -04:00
Stefan Wojcik
b52d3e3a7b
added one more item to the v0.12.0 changelog
2017-04-07 10:34:04 -04:00
Stefan Wojcik
888a6da4a5
update the changelog and bump the version to v0.12.0
v0.12.0
2017-04-07 10:18:39 -04:00
Omer Katz
972ac73dd9
Merge pull request #1497 from userlocalhost/feature/order_guarantee
...
added a feature to save object data in order
2017-04-07 10:49:39 +03:00
Hiroyasu OHYAMA
d8b238d5f1
Refactored the implementation of DynamicField extension for storing data in order
2017-04-06 00:42:11 +00:00
Omer Katz
63206c3da2
Merge pull request #1520 from ZoetropeLabs/fix/allow-reference-fields-take-object-ids
...
Allow ReferenceFields to take ObjectIds
2017-04-02 13:57:58 +03:00
Richard Fortescue-Webb
5713de8966
Use the objectid in the test
2017-03-29 11:34:57 +01:00
Richard Fortescue-Webb
58f293fef3
Allow ReferenceFields to take ObjectIds
2017-03-29 10:34:50 +01: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
Stefan Wojcik
b78010aa94
remove test_last_field_name_like_operator (it's a dupe of the same test in tests/queryset/transform.py)
2017-03-05 21:24:46 -05:00
Stefan Wójcik
49035543b9
cleanup BaseQuerySet.__getitem__ ( #1502 )
2017-03-05 21:17:53 -05:00
Stefan Wójcik
f9ccf635ca
Respect db fields in multiple layers of embedded docs ( #1501 )
2017-03-05 18:20:09 -05:00
Stefan Wojcik
e8ea294964
test negative indexes ( closes #1119 )
2017-03-05 18:12:01 -05:00
Stefan Wojcik
19ef2be88b
fix #937
2017-03-05 00:05:33 -05:00
Stefan Wojcik
30e8b8186f
clean up document instance tests
2017-03-02 00:25:56 -05:00
Stefan Wójcik
741643af5f
clean up field unit tests ( #1498 )
2017-03-02 00:05:10 -05: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
Ephraim Berkovitch
398964945a
Document.objects.create should raise NotUniqueError upon saving duplicate primary key ( #1485 )
2017-02-27 09:42:44 -05: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