I propose `Edit {% trans item.get_related_type %} {{ item.get_related_slide }}`. This way you don't need the new filter.