Stefan Wojcik
5e0b97e90c
add a test with an invalid data type
2017-04-16 11:50:28 -04:00
Stefan Wojcik
a0a3805e2d
Revert "switch from octal to hex for consistency" (because of pypy3)
...
This reverts commit 7d5caf836855cc9b843d50df8b17aa4ff897bd6d.
2017-04-15 23:14:19 -04:00
Stefan Wojcik
7d5caf8368
switch from octal to hex for consistency
2017-04-15 22:20:19 -04:00
Stefan Wojcik
dee5465440
dont run the unicode email test on pypy3
2017-04-15 18:07:32 -04:00
Stefan Wojcik
33e50e48c1
use six.u
2017-04-15 16:46:36 -04:00
Stefan Wojcik
41371e5fc5
empty whitelist by default + allow_ip_domain option
2017-04-10 10:00:49 -04:00
Stefan Wojcik
ce86ea4c9a
flake8 fixes
2017-04-10 08:18:56 -04:00
Stefan Wojcik
601b79865d
support unicode in EmailField
2017-04-09 22:33:11 -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
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