class LinkedInline(admin.options.InlineModelAdmin):
    template = 'admin/linked.html'
admin_model_path = None

def __init__(self, *args):
    super(LinkedInline, self).__init__(*args)
if self.admin_model_path is None:
    self.admin_model_path = self.model.__name__.lower()
Django InlineModelAdmin: Show partially an inline model and link to the complete model