Skip to content

Commit

Permalink
fix CURRENCY_DECIMAL_PLACES_DISPLAY deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
nerdoc authored and Stranger6667 committed Jul 9, 2021
1 parent b2acda3 commit b00cc64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion djmoney/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
CURRENCY_CHOICES.sort(key=operator.itemgetter(1, 0))
DECIMAL_PLACES = getattr(settings, "CURRENCY_DECIMAL_PLACES", 2)
_decimal_display_value = getattr(settings, "CURRENCY_DECIMAL_PLACES_DISPLAY", None)
if _decimal_display_value is None:
if _decimal_display_value is not None:
warnings.warn(
"`CURRENCY_DECIMAL_PLACES_DISPLAY` is deprecated and will be removed in django-money 3.0.",
DeprecationWarning,
Expand Down

0 comments on commit b00cc64

Please sign in to comment.