Exemplo n.º 1
0
 def get_extra_inlines(self):
     """
     Return the extra inlines for the placeholder editor.
     It loads the :attr:`placeholder_inline` first, followed by the inlines for the :class:`~fluent_contents.models.ContentItem` classes.
     """
     return [self.placeholder_inline] + get_content_item_inlines(
         plugins=self.get_all_allowed_plugins())
Exemplo n.º 2
0
 def get_extra_inlines(self):
     # Replicates the equivalent method on PlaceholderEditorAdmin, except
     # adds the `base` kwarg to the inline generator, so that all inlines
     # have the polymorphic fix
     return [self.placeholder_inline] + \
         get_content_item_inlines(
             plugins=self.get_all_allowed_plugins(),
             base=PolymorphicReferringItemInline,
         )
Exemplo n.º 3
0
 def get_extra_inlines(self):
     return get_content_item_inlines(base=ContentItemInline)
 def get_extra_inlines(self):
     """
     Return the extra inlines for the placeholder editor.
     It loads the :attr:`placeholder_inline` first, followed by the inlines for the :class:`~fluent_contents.models.ContentItem` classes.
     """
     return [self.placeholder_inline] + get_content_item_inlines(plugins=self.get_all_allowed_plugins())
Exemplo n.º 5
0
 def get_extra_inlines(self):
     return get_content_item_inlines(base=ContentItemInline)