Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated_fields on MoneyField not working #95

Open
fowczarek opened this issue Oct 5, 2020 · 0 comments
Open

Updated_fields on MoneyField not working #95

fowczarek opened this issue Oct 5, 2020 · 0 comments

Comments

@fowczarek
Copy link

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 fowczarek changed the title Updated_fields not working Updated_fields on MoneyField not working Oct 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant