54791786 Added a switch in the template depending on whether this is a
related link or other. When it isn't a related link, now defaults to
creating a new object of the model type specified.