Skip to content

Commit

Permalink
fix: use string format to normalize decimal
Browse files Browse the repository at this point in the history
  • Loading branch information
asadali145 committed Nov 14, 2024
1 parent 1956d08 commit 85b997f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cms/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2250,7 +2250,7 @@ def normalized_ceus(self):
"""
Normalizes the CEUs from decimal to string. Removes the trailing zeros if any.
"""
return str(self.CEUs.normalize()) if self.CEUs else None
return f"{self.CEUs.normalize():f}" if self.CEUs else None

def get_context(self, request, *args, **kwargs):
preview_context = {}
Expand Down

0 comments on commit 85b997f

Please sign in to comment.