You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @benjaoming ,
Am using djmoney in a DRF project.
if my input is an invalid string for both fields like {'amount': 'v', 'amount_currency': ''} i get a nice error from calling is_valid on the serializer, it would be nice to have same behaviour if any of the field values are not valid
benjaoming
changed the title
djmoney/contrib/django_rest_framework/fields.py throws invalid operation exception when there is a value for ammount_currency and amount is empty str .i.e '''' or anyother string that cant be coersed to an number
djmoney/contrib/django_rest_framework/fields.py throws InvalidOperation instead of validation exception
Feb 14, 2021
Inputs:
The text was updated successfully, but these errors were encountered: