Answer the question
In order to leave comments, you need to log in
Django JSONField problem with Decimal?
There is a model, there is a JSON field, I want to store Decimal as values
The standard serializer cannot convert Decimal, I want to use Django's serializer ...
So far, it only came to mind to inherit from JSONField, override all the necessary methods ..
Is there a prettier, more concise way not to "fence"?
Answer the question
In order to leave comments, you need to log in
Use django 1.11 or if that's not possible see the code there - https://docs.djangoproject.com/en/dev/_modules/dja...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question