'Write your forwards methods here.'

def forwards(self, orm):

    db.commit_transaction()
    modified = True
    while modified:
        rp_ids = list(orm.ReleaseProject.objects.filter(new_groups__isnull=True).values_list('id', flat=True)[:1000])
        modified = orm.ReleaseProject.objects.filter(id__in=rp_ids, new_groups__isnull=True).update(new_groups=0)
    db.start_transaction()
