awesto / django-shop

A Django based shop system
http://www.django-shop.org
BSD 3-Clause "New" or "Revised" License
3.17k stars 1.04k forks source link

How to extend iso4217.py from outside the application? #816

Closed jhonvidal closed 4 years ago

jhonvidal commented 4 years ago

How to extend iso4217.py from outside the application?

I want to create my own currency that is not found in iso4217.py

my custom currency_code not in CURRENCIES and therefore I get an error.

please help.

jrief commented 4 years ago

At the end of iso4217.py, I added

feel free to add more currencies, alphabetically ordered

so, please add your currency, create a pull request and I will merge it immediately.

jhonvidal commented 4 years ago

Thanks for answering. My question is to know if there is a possibility to add new currencies externally without affecting the core of the project.

Anyway I just sent a pull request.

Thank you so much!

jrief commented 4 years ago

or just tell me, which currency you need.

jhonvidal commented 4 years ago

I have sent pull request

jrief commented 4 years ago

closed via #818