Invalid literal for Decimal when trying to serialize money field in Django

When I was trying to serialize a MoneyField in Django Rest Framework (DRF), I got the following error:



File "/app/.venv/local/lib/python2.7/site-packages/rest_framework/" in to_representation  
  1107.             value = decimal.Decimal(six.text_type(value).strip())

File "/usr/lib/python2.7/" in __new__  
  547.                                 "Invalid literal for Decimal: %r" % value)

File "/usr/lib/python2.7/" in _raise_error  
  3872.         raise error(explanation)

Exception Type: InvalidOperation at /api/v2/negotiation/projects/  
Exception Value: Invalid literal for Decimal: u'350,000.00 \u20ac'  

Apparently, I forget to add djmoney to INSTALLED_APPS which registers MoneyField's default (de)serializer

from the official documentation

Make sure that djmoney is in the INSTALLED_APPS of your and MoneyFields to automatically work with Django REST Framework.