fix foreign keys for django 1.3.7, and actually slurp the rel.to field.