After a fruitful discussion on #django-cms with stefanfoulis and ojii we come to the conclusion that the pages are not exactly duplicated but in fact the pages is shown in its 2 states published and draft.
So this duplication can be solved in at least 2 different ways : by restricting the selection to the published Pages :
diff --git a/cms/plugins/teaser/models.py b/cms/plugins/teaser/models.py
index c99150d..6bd7807 100644
@@ -10,7 +10,10 @@ class Teaser(CMSPlugin):
title = models.CharField(("title"), max_length=255)
image = models.ImageField(("image"), upload_to=CMSPlugin.get_media_path, bla
or by changing the unicode method to display the state of the Page this will avoid some confusion.
here's the diff a bit more readable: http://gist.github.com/292515
Me and stefan have look at this together with yml yesterday.
Your proposal is sligtly different than mine, I am suggesting :
I don't know why True is the "good" value because it seems a bit anti natural but I have observed that with False the hyperlink to the page does not get displayed on the published page.
closed by 88701f4, teaser links only draft pages
fixes #343, teaser links only draft pages