torchbox / wagtail-template

A Django template for starting new Wagtail projects with Vagrant. NO LONGER MAINTANED
19 stars 8 forks source link

content_type template tag unnecessary #7

Closed davecranwell closed 9 years ago

davecranwell commented 9 years ago

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 }}

kaedroho commented 9 years ago

Fixed in: e8f496d179a61194176f2fec214289370849d1ba