django-prices icon indicating copy to clipboard operation
django-prices copied to clipboard

Updated_fields on MoneyField not working

Open fowczarek opened this issue 5 years ago • 0 comments

On model I have fields:

    currency = models.CharField(max_length=settings.DEFAULT_CURRENCY_CODE_LENGTH)
    price_amount = models.DecimalField(
        max_digits=settings.DEFAULT_MAX_DIGITS,
        decimal_places=settings.DEFAULT_DECIMAL_PLACES,
    )
    price = MoneyField(amount_field="price_amount", currency_field="currency")

When I change price on objects and try to save it with object.save(update_fields=["price"]). My object is not updated and I haven't got any error.

fowczarek avatar Oct 05 '20 12:10 fowczarek