django-prices
django-prices copied to clipboard
Updated_fields on MoneyField not working
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.