def METHOD_NAME(apps, schema_editor):
    Category = apps.get_model('signals', 'Category')
    qs = Category.objects.filter(slug__in=DEACTIVATE_CATEGORIES, parent__isnull=False)
    qs.update(is_active=False)