return 0
return (self.progress or 0) / self.target * 100
+ @property
+ def progress_percent_pretty(self):
+ return int(self.progress_percent)
+
def update_progress(self):
# Total of new payments during the action.
# This definition will need to change for longer timespans.
<div class="progress-box">
<div>
<div class="l-checkout__support__bar">
- <span data-label="{{ banner.progress_percent|floatformat:'0' }}%" style="width: {% localize off %}{{ banner.progress_percent }}%{% endlocalize %};"></span>
+ <span data-label="{{ banner.progress_percent_pretty }}%" style="width: {% localize off %}{{ banner.progress_percent }}%{% endlocalize %};"></span>
</div>
</div>
</div>