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

added docs for cms.constants #1593

Merged
merged 1 commit into from
Jan 17, 2013
Merged
Show file tree
Hide file tree
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
13 changes: 13 additions & 0 deletions docs/extending_cms/api_references.rst
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,19 @@ add a text plugin with the content ``'hello world'``. This is done in English::
add_plugin(placeholder, 'TextPlugin', 'en', body='hello world')


*************
cms.constants
*************

.. module:: cms.constants

.. data:: TEMPLATE_INHERITANCE_MAGIC

The token used to identify when a user selects "inherit" as template for a
page.



***************
cms.plugin_base
***************
Expand Down
9 changes: 9 additions & 0 deletions docs/upgrade/2.4.rst
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,15 @@ Should be replaced with the new API::
get_cms_setting('PLACEHOLDER_FRONTEND_EDITING')


Added ``cms.constants`` module
==============================

This release adds the ``cms.constants`` module which will hold generic django
CMS constant values. Currently it only contains ``TEMPLATE_INHERITANCE_MAGIC``
which used to live in ``cms.conf.global_settings`` but was moved to the new
``cms.constants`` module in the settings overhaul mentioned above.


******************************
Backwards incompatible changes
******************************
Expand Down