def forwards(self, orm): "Write your forwards methods here." actors = Actor.objects.all() for actor in actors: user = actor.user identity = Identity(actor=actor, msisdn=user.username) if user.password: # Copy over the raw password, we're using the same # hashing algorithm identity.pin = user.password identity.save()