fix pylint messages
This commit is contained in:
parent
c7fc444c95
commit
0b282f45e0
|
@ -29,10 +29,12 @@ class PasswordExpiryPolicy(Policy):
|
||||||
if not self.deny_only:
|
if not self.deny_only:
|
||||||
user.set_unusable_password()
|
user.set_unusable_password()
|
||||||
user.save()
|
user.save()
|
||||||
return False, _('Password expired %(days)d days ago. Please update your password.' % {
|
return False, _(('Password expired %(days)d days ago. '
|
||||||
'days': days_since_expiry
|
'Please update your password.') % {
|
||||||
})
|
'days': days_since_expiry
|
||||||
|
})
|
||||||
return False, _('Password has expired.')
|
return False, _('Password has expired.')
|
||||||
|
return True
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
|
|
||||||
|
|
Reference in New Issue