You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Did you checked changelog/commit history, if the bug is not already fixed?
Yes
Did you searched other issues, if the bug is not already fixed?
Yes
Did you checked documentation?
Yes
Are you able to replicate the bug in the demo site?
There are no tables with money field columns
Describe your issue
Currently, Unfold's display_for_field function in admin.py does not handle django-money's MoneyField, resulting in inconsistent or incorrect formatting of MoneyField values in list views like the ones mentioned here django-money/django-money#220.
For example, these prices with the en locale:
are displayed like this when the locale switches to es:
django-money provides a function that patches Django's display_for_fieldhere but unfold uses its own implementation that renders MoneyField as DecimalField leading to the incorrect display of the values.
The text was updated successfully, but these errors were encountered:
lukasvinclav
changed the title
Support for django-money's MoneyField in display_for_field
fix: django-money display support in display_for_fieldJan 14, 2025
What version of Unfold are you using?
0.43.0
What version of Django are you using?
5.1.4
What browser are you using?
133.0.3
Did you checked changelog/commit history, if the bug is not already fixed?
Yes
Did you searched other issues, if the bug is not already fixed?
Yes
Did you checked documentation?
Yes
Are you able to replicate the bug in the demo site?
There are no tables with money field columns
Describe your issue
Currently, Unfold's
display_for_field
function in admin.py does not handle django-money'sMoneyField
, resulting in inconsistent or incorrect formatting ofMoneyField
values in list views like the ones mentioned here django-money/django-money#220.For example, these prices with the
en
locale:are displayed like this when the locale switches to
es
:django-money provides a function that patches Django's
display_for_field
here but unfold uses its own implementation that rendersMoneyField
asDecimalField
leading to the incorrect display of the values.The text was updated successfully, but these errors were encountered: