panosl / django-currencies

django-currencies allows you to define different currencies, and includes template tags/filters to allow easy conversion between them.
http://pypi.python.org/pypi/django-currencies
BSD 3-Clause "New" or "Revised" License
94 stars 81 forks source link

Support alternate currencies from Open Exchange Rates #62

Open tehfink opened 6 years ago

tehfink commented 6 years ago

Support for the flag "show_alternative=true" would be nice, as detailed here: https://docs.openexchangerates.org/docs/supported-currencies#alternative-black-market-and-digital-currencies

racitup commented 5 years ago

Do we want to do this? It would involve changing the database model to allow longer codes and descriptions because they are no longer standard 3 character, e.g. VEF_BLKMKT. This would also mean the codes are probably different across different currency sources. I'll push a separate branch but not sure this is really "production-ready"

racitup commented 5 years ago

You will have trouble importing alternative currencies with non-standard length codes using the --import switch using the branch above because the command code checks the code has 3 characters. Easily worked around by putting the codes into one of the supported setting variables.