def METHOD_NAME(apps, schema_editor):
    Liste = apps.get_model('liste', 'Liste')
    BDX = apps.get_model('club', 'BDX')
    GroupType = apps.get_model('group', 'GroupType')
    Group = apps.get_model('group', 'Group')
    Subscription = apps.get_model('notification', 'Subscription')
    Event = apps.get_model('event', 'Event')
    Post = apps.get_model('post', 'Post')
    bdx = {}
    gt = GroupType.objects.filter(slug='liste').first()
    if gt:
        for label in gt.label_set.all():
            b = BDX.objects.filter(name=label.name).first()
            if b:
                bdx[label.id] = b
    for group in Group.objects.filter(group_type__slug='liste'):
        liste = Liste.objects.create(
            name=group.name,
            alt_name=group.short_name,
            liste_type=bdx.get(group.label.id, None) if group.label else None,
            summary=group.summary,
            description=group.description,
            logo=group.icon,
            banniere=group.banner,
            video1=group.video1,
            video2=group.video2,
            slug=group.slug,
            year=group.creation_year + 1
        )
        for m in group.membership_set.all():
            liste.members.add(m.student, through_defaults={
                'admin': m.admin,
                'function': m.summary,
            })
        for student in group.subscribers.all():
            Subscription.objects.create(student=student, page=f"liste--{liste.slug}")
        for e in Event.objects.filter(group_slug=group.slug):
            e.group_slug=f"liste--{liste.slug}"
            e.save()
        for p in Post.objects.filter(group_slug=group.slug):
            p.group_slug=f"liste--{liste.slug}"
            p.save()
        for s in group.social_links.all():
            s.slug = f"liste--{liste.slug}"
            s.save()
    # delete all group objects
    GroupType.objects.filter(slug='liste').delete()