Hello Rainell,

as BlogPost inherits from "Displayable" and not "Page" I am not sure whether 
the PageAdmin is the correct Admin class. If your register your model in 
admin.py with admin.site.register(Recipe) it should show up allright. If 
you want a similar form as for the BlogPost admin interface take a look at 
the the admin.py of the mezzanine module "blog".

Am Sonntag, 10. September 2017 21:54:06 UTC+2 schrieb Rainell Dilou Gómez:
>
> Hello,
> I am trying to create a content type extending Blog, the migration is 
> completed successfully but in the admin panel the content type does not 
> exist, it is not displayed in the select list of content types, nor 
> anywhere else. I don't know if it can be created as well as I have tried
>
> *models.py*
> from django.db import models
> from mezzanine.blog.models import BlogPost
> from django.utils.translation import ugettext_lazy as _
>
> class Recipe(BlogPost):
>    fields...
>
> *admin.py*
> from django.contrib import admin
> from mezzanine.pages.admin import PageAdmin
> from .models import Recipe
>
> admin.site.register(Recipe, PageAdmin)
>
> Can someone tell me if it is possible to do it this way, or give me some 
> suggestions? Thanks.
>
>
>

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