fix relationships in ForeignKey.jinja2