fix pylint messages

This commit is contained in:
Jens Langhammer 2019-03-03 17:45:20 +01:00
parent c7fc444c95
commit 0b282f45e0

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: