code: def update_kinds(apps, schema_editor):
      
  
      # Get model managers
      Group = apps.get_model("representatives", "Group")
  
      qs = Group.objects.filter(
          models.Q(name__iregex=ur'^commission d\'enquête') |
          models.Q(name__iregex=ur'^commission spéciale')
      )
  
      for g in qs:
          g.kind = 'delegation'
          g.save()
docs: Downgrade FR special committees to delegations