Tuesday, May 22, 2018

Re: money field question

I'm in a similar boat at the moment.  There is https://github.com/vimeo/py-money too.  Note that django-money uses py-moneyed which does not yet use Babel, so rendering of the correct symbol is limited to a few hardcoded currencies.


https://github.com/python-babel/babel


On Tuesday, 22 May 2018 11:25:04 UTC+10, Mike Dewhirst wrote:
I have just read ...

* Martin Fowler's Money base pattern (P488 to 495)
https://martinfowler.com/eaaCatalog/money.html
* https://github.com/poswald/python-money
* https://github.com/django-money/django-money
* https://github.com/limist/py-moneyed

... and I am spoiled for choice. I was going to just use a DecimalField
and CharField for currency and do my own thing when I decided to pull
Martin Fowler off my shelf and saw how careful I was going to need to be.

My question: Is Django planning to adopt one or other of the above
implementations?

I'm just trying to short-circuit more detailed analysis of these
packages and perhaps others I haven't yet found. If one is on the
horizon for Django I'll just go with that.

Thanks

Mike



--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/762af31e-56fd-4976-bef2-f627c5673f38%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment