예제 #1
0
 def disable(self, user: User, do_save=False):
     user.is_active = False
     if do_save:
         self.save(user)
예제 #2
0
 def enable(self, user: User, do_save=False):
     user.is_active = True
     if do_save:
         self.save(user)