pylint: disable error on seemingly used-before-assigned variable (#74065)

This commit is contained in:
Paul Marillonnet 2023-02-03 09:22:22 +01:00
parent 3e32808e60
commit 70efa06a30
1 changed files with 1 additions and 1 deletions

View File

@ -432,7 +432,7 @@ class LDAPUser(User):
self.pk = self.keep_pk
super().save(*args, **kwargs)
if hasattr(self, 'keep_pk'):
self.pk = pk
self.pk = pk # pylint: disable=used-before-assignment
@property
def can_reset_password(self):