This commit is contained in:
Mouse Reeve 2023-06-21 15:52:32 -07:00
parent 11f1a4662e
commit 6a949c24e2

View file

@ -394,7 +394,7 @@ class User(OrderedCollectionPageMixin, AbstractUser):
def reactivate(self): def reactivate(self):
"""Now you want to come back, huh?""" """Now you want to come back, huh?"""
# pylint: disable=attribute-defined-outside-init # pylint: disable=attribute-defined-outside-init
if not user.allow_reactivation: if not self.allow_reactivation:
return return
self.is_active = True self.is_active = True
self.deactivation_reason = None self.deactivation_reason = None