'Migrate Contacts to have relate to an AccessEntity instead of User/Group'

def forwards(self, orm):

    for contact in orm['identities.Contact'].objects.all():
        if ((not contact.related_user) and contact.related_group):
            contact.related_user = contact.related_group.accessentity_ptr
            contact.save()
