code: def deactivate(self, request, queryset):
          
          selected_cats = self.model.objects.filter(
              pk__in=[int(x) for x in request.POST.getlist('_selected_action')])
  
          for item in selected_cats:
              if item.active:
                  item.active = False
                  item.save()
                  item.children.all().update(active=False)
docs: Set active to False for selected items