fix pylint messages
This commit is contained in:
parent
c7fc444c95
commit
0b282f45e0
|
@ -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.' % {
|
||||
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:
|
||||
|
||||
|
|
Reference in New Issue