Quick hack for inlines with generic relations

Quick hack to make genericadmin.js work with inlines that have generic
relations. Only works if the parent and inline model are in the same
app.