def forwards(self, orm):
        "Write your forwards methods here."
        for instance in orm.LocationSource.objects.all():
            try:
                instance.user = instance.points.all()[0].user
                instance.save()
            except IndexError:
                # No points for this source.
                instance.delete()
def forwards ( self , orm ) : for instance in orm . LocationSource . objects . all ( ) : try : instance . user = instance . points . all ( ) [ 0 ] . user instance . save ( ) except IndexError : instance . delete ( )
Write your forwards methods here.