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
d8c0631dab
added entry in changelog for py2py3 compatibility
2019-12-14 21:23:28 +01:00
Bastien Gérard
9166ba91d7
fix minor styling issue
2019-12-14 16:11:59 +01:00
Bastien Gérard
6bc4e602bb
additional fix
2019-12-14 00:05:48 +01:00
Bastien Gérard
45a7520fc3
make use past.builtins.long
2019-12-13 23:57:18 +01:00
Bastien Gérard
64c0cace85
fix from code review regarding py2py3 compat
2019-12-13 23:57:18 +01:00
Bastien Gérard
82af5e4a19
fix small finding from review on py2py3 compat
2019-12-13 23:54:42 +01:00
Bastien Gérard
7e0ba1b335
clean remaining references to 2to3
2019-12-13 23:52:59 +01:00
Bastien Gérard
44b7f792fe
fix benchmarks prints
2019-12-13 23:52:59 +01:00
Bastien Gérard
a3e432eb68
remove references to '2to3' in doc, travis, etc
2019-12-13 23:46:13 +01:00
Bastien Gérard
009f9a2b14
set dist as xenial to avoid relying on flaky travis default dist
2019-12-13 23:43:04 +01:00
Bastien Gérard
2ca905b6e5
Finalize python2/3 codebase compatibility and get rid of 2to3
2019-12-13 23:43:04 +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
90fecc56dd
Reformat with black
2019-12-05 01:33:35 +01:00
Filip Kucharczyk
d3d7f0e670
Changelog
2019-12-05 01:18:29 +01:00
Filip Kucharczyk
37ffeafeff
Replace 'pip' with 'python -m pip install' in docs
2019-12-05 01:13:05 +01:00
Filip Kucharczyk
abc159b7b9
Update Contributing, changelog
2019-12-05 01:10:54 +01:00
Filip Kucharczyk
648b28876d
Rename requirements-lint.txt to requirements-dev.txt
2019-12-05 00:57:17 +01:00
Filip Kucharczyk
5b9f2bac87
Add pre-commit
2019-12-05 00:54:20 +01:00
Filip Kucharczyk
17151f67c2
Reformat repo with pre-commit hooks
2019-12-05 00:53:39 +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
Filip Kucharczyk
3f75f30f26
Run black
2019-12-03 09:03:49 +01:00
Filip Kucharczyk
f7f0e10d4d
Update changelog
2019-12-03 00:54:53 +01:00
Filip Kucharczyk
091238a2cf
Update Authors
2019-12-03 00:54:46 +01:00
Filip Kucharczyk
0458ef869e
Add __eq__ to Q and Q operations
2019-12-03 00:44:13 +01:00
Eloi Zalczer
0bf08db7b9
Added test case for query_counter alias
2019-12-02 10:07:33 +01:00
Eloi Zalczer
d3420918cd
Added alias parameter in query_counter
2019-11-18 17:16:06 +01:00
Bastien Gérard
138e759161
Merge pull request #2187 from bagerard/improve_error_message_InvalidDocumentError
...
Improve error message from InvalidDocumentError
2019-11-08 21:27:17 +01:00
Bastien Gérard
f1d6ce7d12
Merge pull request #2189 from jangop/patch-1
...
Specify version of requirement
2019-11-08 21:25:41 +01:00
Jan Philip Göpfert
ff749a7a0a
Specify version of requirement
...
In `README.rst`, a version of `six` of at least `1.10.0` is specified. This was missing from the requirements, potentially leading to broken installations.
2019-11-06 10:35:16 +01:00