This line is useless.  `plugins` must be a queryset (as we apply a `filter` below), so if none of the 3 conditions below is met, line 61 will fail.  If you want to handle the unexpected case where instance is neither a Page, a Placeholder or any other Model, add an `else` with an explicit ValueError.