﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
34261	Use {% url model_object %} to work with get_absolute_url	Willem Van Onsem	nobody	"Django has a `{% url ... %}` tag to calculate a reverse url. The advantage of this is that it raises an error in case the url can not be found, and thus makes templates less buggy.m

An alternative is to define a `.get_absolute_url()` method on a model object, and then use it in the template as `{{ model_object.get_absolute_url() }}`. If a model object however has no `get_absolute_url` method, it will return an empty href, not an error.

We can combine the two and check if the first parameter has a `get_absolute_url` method, if that is the case, we return the result of `get_absolute_url` instead."	New feature	closed	Template system	4.1	Normal	wontfix	url		Unreviewed	0	0	0	0	0	0
