X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/298a2c3414d84d57ec9e691cfbc6d084530af278..f546c5d9a29f90988fa2785f3067aba3a5dc3d9a:/src/annoy/models.py?ds=sidebyside diff --git a/src/annoy/models.py b/src/annoy/models.py index 92b8184dd..0d887920d 100644 --- a/src/annoy/models.py +++ b/src/annoy/models.py @@ -13,7 +13,6 @@ class Banner(models.Model): 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) @@ -86,6 +85,10 @@ class Banner(models.Model): 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.