Commits

Anonymous committed 773bdb2

Avoid duplicates in theme selector

  • Participants
  • Parent commits fc8c4cf

Comments (0)

Files changed (2)

File cmsplugin_nivoslider/migrations/0001_initial.pyc

Binary file removed.

File cmsplugin_nivoslider/models.py

         for theme in os.listdir(dir):
             yield theme
 
-THEME_CHOICES = ((t,t) for t in find_themes())
+THEME_CHOICES = ((t,t) for t in set(find_themes()))
 
 class SliderPlugin(CMSPlugin):
     title = models.CharField('Titulo', max_length=255, null=True, blank=True)