Skip to content

Commit

Permalink
Merge pull request #1698 from digi604/api_changes
Browse files Browse the repository at this point in the history
api reference docs fix for plugins in plugins
  • Loading branch information
digi604 committed Apr 8, 2013
2 parents 6ba4ae8 + 49f7702 commit 703b015
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/extending_cms/api_references.rst
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ Functions and constants
:param string overwrite_url: Overwritten path for this page


.. function:: add_plugin(placeholder, plugin_type, language, position='last-child', **data)
.. function:: add_plugin(placeholder, plugin_type, language, position='last-child', target=None, **data)

Adds a plugin to a placeholder and returns it.

Expand All @@ -106,6 +106,7 @@ Functions and constants
:type plugin_type: string or :class:`cms.plugin_base.CMSPluginBase` subclass, must be a valid plugin
:param string language: Language code for this plugin, must be in :setting:`django:LANGUAGES`
:param string position: Position to add this plugin to the placeholder, must be a valid django-mptt position
:param target: Parent plugin. Must be plugin instance
:param kwargs data: Data for the plugin type instance


Expand Down

0 comments on commit 703b015

Please sign in to comment.