Commits

andrejus  committed edf8522

Fixed get_currency.

  • Participants
  • Parent commits a10ffab

Comments (0)

Files changed (1)

File money/Money.py

 # Definitions of ISO 4217 Currencies
 # Source: http://www.iso.org/iso/support/faqs/faqs_widely_used_standards/widely_used_standards_other/currency_codes/currency_codes_list-1.htm
 # Symbols: http://www.xe.com/symbols.php
-#
+#)
 
 
 def add_currency(code, numeric, name, countries):
 
 
 def get_currency(code):
+    from money.Money import Currency
+    if isinstance(code, Currency):
+        code = str(code)
     try:
         return CURRENCIES[code]
     except KeyError: