Skip to content

Instantly share code, notes, and snippets.

Created February 2, 2010 08:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/292515 to your computer and use it in GitHub Desktop.
Save anonymous/292515 to your computer and use it in GitHub Desktop.
diff --git a/cms/plugins/teaser/models.py b/cms/plugins/teaser/models.py
index c99150d..7604238 100644
--- a/cms/plugins/teaser/models.py
+++ b/cms/plugins/teaser/models.py
@@ -10,7 +10,9 @@ class Teaser(CMSPlugin):
"""
title = models.CharField(_("title"), max_length=255)
image = models.ImageField(_("image"), upload_to=CMSPlugin.get_media_path, b
- page_link = models.ForeignKey(Page, verbose_name=_("page"), help_text=_("If
+ page_link = models.ForeignKey(Page, verbose_name=_("page"),
+ help_text=_("If present image will be clickable"), blank=True, null=Tru
+ limit_choices_to={'publisher_is_draft': False})
url = models.CharField(_("link"), max_length=255, blank=True, null=True, he
description = models.TextField(_("description"), blank=True, null=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment