Downgrade FR special committees to delegations

def update_kinds(apps, schema_editor):
    """
    Downgrade FR special committees to delegations
    """

    # 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()