erdenezul
80ea1f6883
Merge pull request #2233 from bagerard/release_0_19_1
...
Bump version to 0.19.1 + force pillow to be < 7.0.0
v0.19.1
2020-01-03 21:11:17 +01:00
Bastien Gérard
75ee282a3d
black setup.py to please CI
2020-01-03 14:15:24 +01:00
Bastien Gérard
4edad4601c
Bump version to 0.19.1 + force pillow to be < 7.0.0
2020-01-03 14:03:17 +01:00
Bastien Gérard
152b51fd33
improve gridfs example (properly opening file)
2019-12-29 14:36:50 +01:00
erdenezul
66a0fca4ad
Merge pull request #2229 from bagerard/improve_doc_gridfs
...
improve doc of GridFS
2019-12-27 16:46:38 +01:00
Bastien Gérard
e7c7a66cd1
improve doc of GridFS, emphasize that subsequent call to read() requires to rewind the file with seek(0)
2019-12-27 10:38:03 +01:00
Bastien Gérard
b3dbb87c3c
improve doc of aggregate kwargs
2019-12-27 10:06:27 +01:00
erdenezul
3d45538998
Merge pull request #2227 from bagerard/test_py38
...
Test py38
2019-12-27 07:05:12 +01:00
erdenezul
8df9d3fef9
Merge pull request #2228 from bagerard/change_aggregate_interface
...
change & deprecate .aggregate interface to mimic pymongo's interface
2019-12-27 07:04:25 +01:00
Bastien Gérard
99e660c66d
update changelog
2019-12-27 09:32:05 +01:00
Bastien Gérard
aa02f87b69
change & deprecate .aggregate api to mimic pymongo's interface + separate the aggregation tests from the large test_queryset.py file
2019-12-27 09:23:15 +01:00
Bastien Gérard
f0d1ee2cb4
update travis config + improve readmecode
2019-12-26 21:03:34 +01:00
Bastien Gérard
ca4967311d
update python 3.8 config
2019-12-26 21:00:34 +01:00
Bastien Gérard
65eb6ab611
Merge branch 'master' of github.com:MongoEngine/mongoengine into test_py38
2019-12-26 20:58:31 +01:00
Bastien Gérard
1cb2f7814c
Merge branch 'mcsimps2-allow-periods-in-dict'
2019-12-26 20:53:50 +01:00
Bastien Gérard
b5485b16e6
Merge branch 'allow-periods-in-dict' of https://github.com/mcsimps2/mongoengine into mcsimps2-allow-periods-in-dict
2019-12-26 20:47:46 +01:00
Bastien Gérard
62c8597a3b
fix pypi deployment version match
v0.19.0
2019-12-24 11:15:23 +01:00
Bastien Gérard
488604ff2e
test python 3.8
2019-12-24 00:00:15 +01:00
erdenezul
bd88a17b8e
Merge pull request #2224 from bagerard/release_0_19_0
...
Release 0 19 0
2019-12-22 18:46:38 +01:00
Bastien Gérard
8e892dccfe
document recent merged PR in changelog
2019-12-20 23:51:01 +01:00
Bastien Gérard
c22eb34017
Merge branch 'master' of github.com:MongoEngine/mongoengine into release_0_19_0
2019-12-20 23:49:41 +01:00
Bastien Gérard
dcf3edb03e
Merge pull request #2094 from divomen/negative_indexes_in_list
...
Supported updates of an array by negative index
2019-12-20 23:48:00 +01:00
Bastien Gérard
c85b59d3b5
Merge branch 'master' of github.com:MongoEngine/mongoengine into negative_indexes_in_list
2019-12-20 23:27:51 +01:00
Bastien Gérard
1170de1e8e
added explicit doc for order_by #2117
2019-12-20 23:20:15 +01:00
Bastien Gérard
332bd767d4
minor fixes in tests
2019-12-20 23:20:15 +01:00
erdenezul
0053b30237
Merge pull request #2217 from bagerard/improve_inheritance_doc
...
provide additional details on how inheritance works in doc
2019-12-20 22:43:45 +01:00
Bastien Gérard
d44533d956
completed the changelog with missing details
2019-12-20 22:41:22 +01:00
Bastien Gérard
12d8bd5a22
bump version to 0.19.0
2019-12-20 22:11:43 +01:00
Bastien Gérard
ae326678ec
updated changelog for upcoming 0.19.0
2019-12-20 22:09:04 +01:00
Bastien Gérard
8d31f165c0
Merge pull request #2182 from daewok/fix-embedded-document-equality-with-lazy-refs
...
Fix EmbeddedDocument equality with LazyReferenceFields
2019-12-16 23:57:50 +01:00
Eric Timmons
cfd4d6a161
Add breaking change to changelog for LazyReferenceField representation in _data
2019-12-15 20:46:48 -05:00
Eric Timmons
329f030a41
Always store a DBRef, Document, or EmbeddedDocument in LazyReferenceField._data
...
This is required to handle the case of equality tests on a LazyReferenceField
with dbref=True when comparing against a field instantiated with an ObjectId.
2019-12-15 20:46:48 -05:00
Eric Timmons
68dc2925fb
Add LazyReferenceField with dbref=True to embedded_document equality test
2019-12-15 20:21:22 -05:00
Eric Timmons
0d4e61d489
Add daewok to AUTHORS per contributing guidelines
2019-12-15 20:21:18 -05:00
Eric Timmons
dc7b96a569
Make python value for LazyReferenceFields be a DBRef
...
Previously, when reading a LazyReferenceField from the DB, it was stored
internally in the parent document's _data field as an ObjectId. However, this
meant that equality tests using an enclosing EmbeddedDocument would not return
True when the EmbeddedDocument being compared to contained a DBRef or Document
in _data. Enclosing Documents were largely unaffected because they look at the
primary key for equality (which EmbeddedDocuments lack).
This makes the internal Python representation of a LazyReferenceField (before
the LazyReference itself has been constructed) a DBRef, using code identical to
ReferenceField.
2019-12-15 20:20:59 -05:00
Eric Timmons
50882e5bb0
Add failing test
...
Test that __eq__ for EmbeddedDocuments with LazyReferenceFields works as
expected.
2019-12-15 20:20:59 -05:00
Bastien Gérard
280a73af3b
minor fix in doc of NULLIFY to improve #834
2019-12-14 21:44:59 +01:00
Bastien Gérard
3b099f936a
provide additional details on how inheritance works in doc
2019-12-13 21:32:45 +01:00
Bastien Gérard
4d6ddb070e
Merge pull request #2210 from Pacu2/fix/implement-bool-on-q-and-qcombination
...
Add __bool__ to Q and QCombination
2019-12-13 20:53:33 +01:00
Matt Simpson
b205314424
Add ability for dict keys to have . or $ in MongoDB >= 3.6
...
Starting in MongoDB >= 3.6, it is valid for dictionary keys to have $ or . in them as long as they don't start with $. Additional tests added.
2019-12-10 11:09:29 -05:00
Filip Kucharczyk
e83132f32c
Note deprecation of 'empty' in changelog
2019-12-10 11:54:52 +01:00
Filip Kucharczyk
1b38309d70
Revert 'empty' usage to it's previous state
2019-12-06 10:14:22 +01:00
Filip Kucharczyk
6e8196d475
Python 2.x compatibility
2019-12-05 01:41:48 +01:00
Filip Kucharczyk
5f14d958ac
Sort imports
2019-12-05 00:46:57 +01:00
Filip Kucharczyk
bd6c52e025
Changelog
2019-12-05 00:30:03 +01:00
Filip Kucharczyk
cb77bb6b69
Implement __bool__ on Q and QCombination
2019-12-05 00:27:41 +01:00
Bastien Gérard
78b240b740
updated changelog + improved query_counter test
2019-12-04 21:51:07 +01:00
Bastien Gérard
7e30f00178
Merge pull request #2195 from EloiZalczer/master
...
Added alias parameter in query_counter
2019-12-04 21:50:41 +01:00
Bastien Gérard
35310dbc73
Merge pull request #2204 from Pacu2/2203/ability-to-compare-q-objects
...
Add __eq__ to Q and Q operations
2019-12-04 20:58:04 +01:00
Filip Kucharczyk
af82c07acc
Reformat with black
2019-12-03 09:19:02 +01:00