django-fluent-contents
django-fluent-contents copied to clipboard
Implement permission support for inline models
When users don't have permission to all inline models, the content may still be edited, or cause errors.
For example, when users have no permission on the Placeholder model, the inline will try to re-create the object while it already exists. Error:
IntegrityError: duplicate key value violates unique constraint "fluent_contents_placeholde_parent_type_id_451c85966d08dedf_uniq"
DETAIL: Key (parent_type_id, parent_id, slot)=(29, 52, blog_contents) already exists.
When the ContentItem
inlines don't have edit permission, the elements should still be displayed, but not made editable.
When the ContentItem inlines don't have edit permission, the elements should still be displayed, but not made editable.
Or at least show normal error not the strange exception.