Django admin allows to use callable view_on_site() within ModelAdmin.
This is useful when you want to customize admin URLs without changing get_absolute_url(). However, django-suit uses model get_absolute_url() attribute, bypassing this customisation.
This PR fixes it. It is safe to merge because the peace of code in django template context hasn't been changed for 4 years.
Hi!
Django admin allows to use callable
view_on_site()
withinModelAdmin
.This is useful when you want to customize admin URLs without changing get_absolute_url(). However, django-suit uses model
get_absolute_url()
attribute, bypassing this customisation.This PR fixes it. It is safe to merge because the peace of code in django template context hasn't been changed for 4 years.