Since looking around the wagtail core codebase I've discovered that the content_type template tag here is both duplicative and only partly functional, since it doesn't reflect the overridden verbose_name given to a model by a developer, only the default name.
The better way of doing template-{{ self|content_type|slugify }} is template-{{ self.get_verbose_name|slugify }}
Since looking around the wagtail core codebase I've discovered that the
content_type
template tag here is both duplicative and only partly functional, since it doesn't reflect the overriddenverbose_name
given to a model by a developer, only the default name.The better way of doing
template-{{ self|content_type|slugify }}
istemplate-{{ self.get_verbose_name|slugify }}