Zinnia has no content field in Django Admin

234 views Asked by At

I have setup Django CMS with Zinnia for the first time. However in the admin area there is no place to enter actual content! See image...

enter image description here

Everything else works. What I'm I doing wrong here?

enter image description here

1

There are 1 answers

0
Andrey Nelubin On BEST ANSWER

The problem is that you're using this plugin https://github.com/django-blog-zinnia/cmsplugin-zinnia which reset admin page here if you're set cmsplugin_zinnia.placeholder.EntryPlaceholder as ENTRY_BASE_MODEL.

As you see this code cuts the original fieldset and remove content field:

fieldsets = (
    (_('Content'), {'fields': (('title', 'status'), 'image')}),) + \
    EntryAdmin.fieldsets[1:]

So I see only one solution is to set another model as ENTRY_BASE_MODEL which you need to create:

from zinnia.models_bases.entry import AbstractEntry

class Entry(AbstractEntry):
    pass

And finally set correct settings.py

ENTRY_BASE_MODEL = 'path_to_module.Entry'

I hope this will help you :)

Note

I digged out why the hell they reset fieldset the original admin. This is explained here.