Re: [mezzanine-users] Adding a featured_image to a Page

2014-09-02 Thread Simone Dalla
2014-09-02 15:04 GMT+02:00 Wim Feijen : > Hello, > > I'd like to add a featured_image to the Page model. > > Following the advice on > http://mezzanine.jupo.org/docs/content-architecture.html#creating-custom-content-types, > I created my own Page model. > Read the note at the end of http://mezzan

Re: [mezzanine-users] Adding a featured_image to a Page

2014-09-02 Thread Ken Bolton
Hi Wim, Use the source, Luke! If you look at the source for pages.models , you will see that you can do multiple inheritance. So instead of `class FeaturedPage(Page)`, use `class FeaturedPage(Page, RichText)`,

[mezzanine-users] Adding a featured_image to a Page

2014-09-02 Thread Wim Feijen
Hello, I'd like to add a featured_image to the Page model. Following the advice on http://mezzanine.jupo.org/docs/content-architecture.html#creating-custom-content-types, I created my own Page model. in models.py: from django.db import models from mezzanine.pages.models import Page from mez