django-blog-zinnia / cmsplugin-zinnia

Bridge between django-blog-zinnia and django-cms
BSD 3-Clause "New" or "Revised" License
53 stars 46 forks source link

Cannot create custom abstract model #36

Closed rkorkosz closed 9 years ago

rkorkosz commented 9 years ago

Hello. In my recent project i use django-cms with zinnia and i want to connect them together by this awesome plugin. However i must overwrite zinnia AbstractEntry model for several reasons. In plain zinnia i would only change ZINNIA_ENTRY_BASE_MODEL setting, but with this plugin i have to inherit from EntryPlaceholder model which inherits from zinnia AbstractEntry. Is there a way to change this behaviour? Is it possible that EntryPlaceholder model would inherit from custom model?

Thanks.

Fantomas42 commented 9 years ago

Hello,

It's not really possible to change the inheritance of EntryPlaceholder, but I can suggest you to rebuild an Entry model with the mixins provided in Zinnia and to copy'n'paste the logic added in EntryPlaceholder.

I will do a mixin of the logic implemented by EntryPlaceholder, to avoid future copy'n'paste.