﻿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
27757	view_on_site does not receive the get_absolute_url returning uri	George Tantiras	nobody	"I am using Django-1.10 under Python-3.4.2.

{{{
from django.db import models


class Product(models.Model):
    name = models.CharField(verbose_name=""Name"", max_length=100, unique=True)

    def get_absolute_url(self):
        return ""test-string/{0}"".format(self.id)


class Flavor(models.Model):
    product = models.ForeignKey(Product, verbose_name=""Product"")
    name = models.CharField(verbose_name=""Name"", max_length=100)


    def get_absolute_url(self):
        return ""test-string-2/{0}"".format(self.id)
}}}


admin.py:
{{{
from django.contrib import admin
from inline_online.models import Flavor, Product


class FlavorInline(admin.TabularInline):
    model = Flavor


class ProductAdmin(admin.ModelAdmin):
    list_display = (""id"", ""name"")
    inlines = [FlavorInline, ]


admin.site.register(Product, ProductAdmin)


class FlavorAdmin(admin.ModelAdmin):
    view_on_site = True


admin.site.register(Flavor, FlavorAdmin)
}}}

The `view_on_site` link appears either in the main model admin view or in the inlines but the url is not the one returned from `get_absolute_url` method (example: `/admin/r/10/1`)
A very old ticket seem to reference the same issue: https://code.djangoproject.com/ticket/7984"	Uncategorized	new	Uncategorized	1.10	Normal				Unreviewed	0	0	0	0	0	0
