Opened 7 years ago

Last modified 7 years ago

#27757 closed Bug

vIew_on_site is not working with inline models — at Initial Version

Reported by: George Tantiras Owned by: nobody
Component: contrib.admin Version: 1.10
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

I am using Django-1.10 under Python-3.4.2.

Although view_on_site = True works great for the admin.ModelAdmin using the url provided by the get_absolute_url method of the model, inlines of the same model (admin.StackedInline view) return a completely wrong url which points to the admin and contains a localized id (/admin/<model>/r//1.234).

Even if def view_on_site(self.obj) method is defined in the admin.StackedInline view, the result is ignored and the same localized url (/admin/<model>/r//1.234) is returned.

A very old ticket seem to reference the same issue: https://code.djangoproject.com/ticket/7984

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top