Add get_absolute_url function to models