Hi Jean,

Have you created a schema migration for your app or run syncdb? Either of
those commands should sort you out, and creating a schema migration will
allow you to automate database changes going forward.

hth.

-ken

On Tue, Jun 2, 2015 at 8:15 AM, Jean de la Croix Ki <[email protected]>
wrote:

> I'm trying to build up a page which is a subclass of
> mezzanine.blog.models.BlogPost; but when I try to create an instance I get
> the following:
> OperationalError at /admin/theme/evenement/
> no such column: theme_evenement.blogpost_ptr_id
>
> And here is how I construct my class :
> from mezzanine.blog.models import BlogPost
>
> class Evenement(BlogPost):
>
>     '''
>
>     '''
>
>     class Meta:
>         verbose_name = _("Evènement")
>         verbose_name_plural = _("Evènements")
>
> admin.site.register(Evenement, BlogPostAdmin)
>
> Environment:
>
>
> Request Method: GET
> Request URL: http://127.0.0.1:8000/admin/theme/evenement/
>
> Django Version: 1.6.7
> Python Version: 3.3.2
>
> Please 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.
>

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