Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

api reference docs fix for plugins in plugins #1698

Merged
merged 1 commit into from
Apr 8, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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