def to_python(self, value):
    try:
        return super(CurrencyField, self).to_python(value=value).quantize(Decimal('0.01'))
    except AttributeError:
        return None
def to_python(self, value):
    try:
        return super(CurrencyField, self).to_python(value=value).quantize(Decimal('0.01'))
    except AttributeError:
        return None