Fix url reference to Entry model when using custom models