style = models.CharField(
'styl', max_length=255, blank=True,
choices=STYLES,
- help_text='Dotyczy blackoutu.'
)
smallfont = models.BooleanField('mały font', default=False)
text_color = models.CharField(max_length=10, blank=True)
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.