Determines the names of child and parent relations names, as well as changes one of the sides of the relation into weakref.proxy to model.
to_field: field with relation definition :type to_field: ForeignKeyField
parent: parent model :type parent: Model
child: child model :type child: Model
parent, child, child_name, to_name :rtype: Tuple["Model", "Model", str, str]