def handle(self, *args, **options): if options["realm"]: realm = get_realm(options["realm"]) delete_realm_user_sessions(realm) elif options["deactivated_only"]: delete_all_deactivated_user_sessions() else: delete_all_user_sessions()
def handle(self, *args, **options): # type: (*Any, **Any) -> None if options["realm"]: realm = get_realm_by_string_id(options["realm"]) delete_realm_user_sessions(realm) elif options["deactivated_only"]: delete_all_deactivated_user_sessions() else: delete_all_user_sessions()
def handle(self, *args, **options): if options["realm"]: realm = get_realm(options["realm"]) delete_realm_user_sessions(realm) else: delete_all_user_sessions()
def handle(self, *args, **options): if options["realm"]: realm = Realm.objects.get(domain=options["realm"]) delete_realm_user_sessions(realm) else: delete_all_user_sessions()