I have a template whose "body" attribute must be HTML content. Therefore, I use the Summernote widget to add it, as follows:
@admin.register(StoryContent)
class StoryContentAdmin(SummernoteModelAdmin):
summernote_fields = ('body',)
Now that I am trying to use django_reverse_admin, I have changed the structure, but when using the Foreign Key names, naturally, I can't see the "body" field with the Summernote widget.
So I made a template form, specifying that the "body" field should use the Summernote widget, but when it comes to using this form, I get the following error.
I have a template whose "body" attribute must be HTML content. Therefore, I use the Summernote widget to add it, as follows:
Now that I am trying to use django_reverse_admin, I have changed the structure, but when using the Foreign Key names, naturally, I can't see the "body" field with the Summernote widget.
So I made a template form, specifying that the "body" field should use the Summernote widget, but when it comes to using this form, I get the following error.
Getting:
TypeError: 'ModelFormMetaclass' object is not iterable
How can I specify the form or my StoryContentAdmin class to use this widget?