cms.plugins.inherit.models: 7 total statements, 0.0% covered

Generated: Wed 2013-03-13 10:33 CET

Source file: /media/Envs/Envs/filer-gallery/lib/python2.7/site-packages/cms/plugins/inherit/models.py

Stats: 0 executed, 3 missed, 4 excluded, 4 ignored

  1. from django.db import models
  2. from django.utils.translation import ugettext_lazy as _
  3. from cms.models import CMSPlugin, Page
  4. from django.conf import settings
  5. class InheritPagePlaceholder(CMSPlugin):
  6. """
  7. Provides the ability to inherit plugins for a certain placeholder from an associated "parent" page instance
  8. """
  9. from_page = models.ForeignKey(Page, null=True, blank=True, help_text=_("Choose a page to include its plugins into this placeholder, empty will choose current page"))
  10. from_language = models.CharField(_("language"), max_length=5, choices=settings.CMS_LANGUAGES, blank=True, null=True, help_text=_("Optional: the language of the plugins you want"))