fix pylint messages

This commit is contained in:
Jens Langhammer 2019-03-03 17:45:20 +01:00
parent c7fc444c95
commit 0b282f45e0
1 changed files with 5 additions and 3 deletions

View File

@ -29,10 +29,12 @@ class PasswordExpiryPolicy(Policy):
if not self.deny_only:
user.set_unusable_password()
user.save()
return False, _('Password expired %(days)d days ago. Please update your password.' % {
'days': days_since_expiry
})
return False, _(('Password expired %(days)d days ago. '
'Please update your password.') % {
'days': days_since_expiry
})
return False, _('Password has expired.')
return True
class Meta: