Hi i would like to add some additional processing to the BlogPost model,
but im having a difficulty trying to figure out how to properly subclass 
it, and register it to the admin page.

for now ive just done something simple like this in my models.py

class MyBlogPost(BlogPost):
    pass


and in my admin.py

from mezzanine.blog.admin import BlogPostAdmin
from mezzanine.blog.models import BlogPost
from .models import MyBlogPost

admin.site.unregister(BlogPost)
admin.site.register(MyBlogPost, BlogPostAdmin)


But the I just get an 'BlogPost is not registered' error, so im doing 
something wrong

So what the correct to replace BlogPost with my subclass?

Im sure i had this figured out previously, but removed it temporarily, and 
now cant remember how i did it.
Trying to google for it like i did before hasn't gotten me anywhere.

-- 
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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to