From 4194e8ee556f3109057fab0afb7894927b52713e Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Wed, 30 Sep 2015 02:08:19 +0300 Subject: Cleanup --- servo/models/account.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'servo/models/account.py') diff --git a/servo/models/account.py b/servo/models/account.py index 14535b2..46eb674 100644 --- a/servo/models/account.py +++ b/servo/models/account.py @@ -73,7 +73,7 @@ class User(AbstractUser): max_length=32, choices=LOCALES, default=LOCALES[0][0], - verbose_name=_('language'), + verbose_name=_('Language'), help_text=_("Select which language you want to use Servo in.") ) @@ -108,7 +108,7 @@ class User(AbstractUser): ) notify_by_email = models.BooleanField( default=False, - verbose_name=_('email notifications'), + verbose_name=_('Email notifications'), help_text=_("Event notifications will also be emailed to you.") ) autoprint = models.BooleanField( @@ -120,7 +120,7 @@ class User(AbstractUser): blank=True, default='', max_length=16, - verbose_name=_("tech ID") + verbose_name=_("Tech ID") ) gsx_userid = models.CharField( blank=True, @@ -141,7 +141,7 @@ class User(AbstractUser): null=True, blank=True, upload_to="avatars", - verbose_name=_('photo'), + verbose_name=_('Photo'), help_text=_("Maximum avatar size is 1MB") ) @@ -168,6 +168,10 @@ class User(AbstractUser): @classmethod def refresh_nomail(cls): + """ + Refreshes the list of emails that shouldn't + be notified by email + """ users = cls.active.filter(notify_by_email=False) nomail = [u.email for u in users] cache.set('nomail', nomail) -- cgit v1.2.3