Source code for superdjango.contrib.i18n.currencies.descriptors

# Classes


[docs]class Currency(object): """A descriptor for currency specification."""
[docs] def __init__(self, code, name): """Initialize the descriptor. :param code: The currency code. :type code: str :param name: The currency name. :type name: str """ self.code = code self.name = name