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 mezzanine.core.fields import FileField


class FeaturedPage(Page):
    featured_image = FileField(blank=True, null=True, upload_to=
'featured_images')




in admin.py:

from django.contrib import admin
from mezzanine.pages.admin import PageAdmin
from .models import FeaturedPage


admin.site.register(FeaturedPage, PageAdmin)



Now when I want to add a FeaturedPage, the richtextfield content field 
disappears from the admin! Why is that? If you have any idea, please let me 
know.

I'm using 
Django==1.6.6
Mezzanine==3.1.10

<https://lh3.googleusercontent.com/-y09HkyxQfqw/VAW_rUVEmbI/AAAAAAAABD4/qzHzbZ6tqFI/s1600/Screenshot%2Bfrom%2B2014-09-02%2B14%3A54%3A58.png>

Thanks for your help!

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to