Skip to content
Permalink
Browse files

Merge branch 'pull_#1247'

Closes #1216
  • Loading branch information...
nicolaiarocci committed Mar 30, 2019
2 parents bc916bf + 01457a6 commit 5872c557041fa53911944ac0a623f6db46686536
Showing with 7 additions and 1 deletion.
  1. +2 −0 AUTHORS
  2. +2 −0 CHANGES.rst
  3. +3 −1 eve/io/mongo/mongo.py
@@ -9,6 +9,7 @@ Development Lead
Patches and Contributions
`````````````````````````


- Aayush Sarva
- Alexander Dietmüller
- Alexander Hendorf
@@ -183,4 +184,5 @@ Patches and Contributions
- kreynen
- mmizotin
- quentinpraz
- smeng9
- xgdgsc
@@ -15,6 +15,7 @@ New

Fixed
~~~~~
- Insertion failure when replacing a same document containing dbref (`#1216`_)
- Datasource projection is not respected for POST requests (`#1189`_)
- Soft delete removes ``auth_field`` from document (`#1188`_)
- On Mongo 3.6+, we don't return 400 'immutable field' on PATCH and PUT (`#1243`_)
@@ -45,6 +46,7 @@ Improved
their logic to dedicated methods (`#1194`_)
- Add a "Python 3 is highly preferred" note on the homepage (`#1198`_)

.. _`#1216`: https://github.com/pyeve/eve/issues/1216
.. _`#1244`: https://github.com/pyeve/eve/issues/1244
.. _`#1189`: https://github.com/pyeve/eve/issues/1189
.. _`#1188`: https://github.com/pyeve/eve/issues/1188
@@ -94,7 +94,9 @@ class Mongo(DataLayer):
str(v).lower()
],
"dbref": lambda value: DBRef(
value["$col"], value["$id"], value["$db"] if "$db" in value else None
value["$col"] if "$col" in value else value["$ref"],
value["$id"],
value["$db"] if "$db" in value else None,
)
if value is not None
else None,

0 comments on commit 5872c55

Please sign in to comment.
You can’t perform that action at this time.