Erdenezul Batmunkh
3dcc9bc143
use explicit tests and fix unneccessary indent #1565
2017-07-13 22:59:21 +08:00
erdenezul
7311895894
Merge branch 'master' into support_position_in_push
2017-07-13 20:08:57 +08:00
Davidrjx
a7cab51369
Use a set literal in _clean_settings ( #1585 )
2017-07-13 12:07:36 +02:00
Erdenezul Batmunkh
fb00b79d19
add docs for positional push operator #1565
2017-06-19 03:28:34 +00:00
Erdenezul Batmunkh
7782aa7379
do not test position push in mongodb_v2.4 #1565
2017-06-19 03:11:59 +00:00
Erdenezul Batmunkh
f3ee4a5dac
add tests for push operator #1565
2017-06-19 02:59:17 +00:00
Stefan Wojcik
a8d6e59a7a
minor tweaks to code quality in _fields_to_dbfields
2017-06-18 17:25:39 -07:00
Danil
1d4b1870cf
to_db_fields fix ( #1553 )
2017-06-18 17:04:46 -07:00
Erdenezul Batmunkh
f63ad2dd69
dont test in mongoDB v2.4 #1565
2017-06-15 07:36:14 +00:00
Erdenezul Batmunkh
6903eed4e7
support position in 'push' #1565
2017-06-15 06:08:40 +00:00
José Enrique Carrillo Pino
2f1fe5468e
Fix empty string casted to datetime today in DateTimeField ( #1533 )
2017-05-12 12:59:14 -04:00
lanf0n
24d15d4274
fix typo in the save() method's docstring ( #1551 )
2017-05-11 10:06:36 -04:00
Stefan Wojcik
0bc7aa52d8
more docs tweaks [ci skip]
v0.14.0
2017-05-08 00:14:42 -04:00
Stefan Wojcik
e52603b4a7
ver bump to v0.14.0 + changelog/upgrade docs update
2017-05-08 00:12:26 -04:00
Stefan Wójcik
3b88712402
Cleaner as_pymongo ( #1549 )
2017-05-08 00:02:42 -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