def disable(self, user: User, do_save=False): user.is_active = False if do_save: self.save(user)
def enable(self, user: User, do_save=False): user.is_active = True if do_save: self.save(user)