feincms/feincms — pull request #316 by mjtamlyn (2012-06-20 10:57:49+00:00)
Title: Content template names

This is an example of how we could start to extend the API of the content types to make them easier to subclass. It's a little bit CBV inspired. If we like the idea it would be good to apply it to the other content types as well, especially the `get_template_names` method.

In this particular use case I wanted to use the ContactFormContent with multiple forms, which were chosen by the admin. Using this updated version as my base class, I was able to write [this](https://gist.github.com/2959354) code to get what I needed, rather than needed to copy and paste all of the prepare method.

Opinions? If we like it I can extend the concept to the other built-in content types.